Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Bug #16547 The phar for PEAR installer uses ereg() which is deprecated
Submitted: 2009-08-24 15:32 UTC
From: mgdm Assigned: dufuz
Status: Closed Package: PEAR (version 1.8.1)
PHP Version: 5.3.0 OS: Linux
Roadmaps: 1.9.0    
Subscription  


 [2009-08-24 15:32 UTC] mgdm (Michael Maclean)
Description: ------------ the script "index.php" inside the PHAR at http://pear.php.net/install-pear-nozlib.phar uses the ereg() function which is deprecated. Building 5.3 without ereg enabled works perfectly aside from this step. Test script: --------------- Running "make install" on a PHP 5.3 build that has ext/ereg disabled. It dies on the install-pear job. Expected result: ---------------- Script should use a preg expression instead. Actual result: -------------- Installing PEAR environment: /opt/php53/lib/php/ --2009-08-24 10:29:58-- http://pear.php.net/install-pear-nozlib.phar Resolving pear.php.net... 78.129.214.25 Connecting to pear.php.net|78.129.214.25|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3665984 (3.5M) [text/plain] Saving to: `pear/install-pear-nozlib.phar' 100%[==========================================================================================================================================>] 3,665,984 457K/s in 6.9s 2009-08-24 10:30:05 (519 KB/s) - `pear/install-pear-nozlib.phar' saved [3665984/3665984] Fatal error: Call to undefined function ereg() in phar:///opt/build/php-build-5.3/pear/install-pear-nozlib.phar/index.php on line 48 make[1]: *** [install-pear-installer] Error 255 make: *** [install-pear] Error 2 michael@blackpearl:/opt/build/php-build-5.3$

Comments

 [2009-08-25 08:41 UTC] doconnor (Daniel O'Connor)
 [2009-08-25 08:41 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Feedback
 [2009-08-31 02:35 UTC] dufuz (Helgi Þormar Þorbjörnsson)
Daniel, said index.php does not exist in the tgz files, only in phar
 [2009-08-31 02:42 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Summary: PEAR installer uses ereg() which is deprecated +Summary: The phar for PEAR installer uses ereg() which is deprecated -Status: Feedback +Status: Closed -Assigned To: +Assigned To: dufuz -Roadmap Versions: +Roadmap Versions: 1.9.0
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2009-08-31 02:44 UTC] dufuz (Helgi Þormar Þorbjörnsson)
The fix will go live when a PEAR stable has been made, that's the only time we update the phar files.