php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55981 PHP 4.3.5RC2 GO-PEAR distributive package broken
Submitted: 2004-02-09 11:44 UTC Modified: 2004-02-17 05:14 UTC
From: techtonik at tut dot by Assigned: pajoye (profile)
Status: Closed Package: PECL website (PECL)
PHP Version: 4CVS-2004-02-09 (stable) OS: NT6.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: techtonik at tut dot by
New email:
PHP Version: OS:

 

 [2004-02-09 11:44 UTC] techtonik at tut dot by
Description:
------------
php-4.3.5RC2-Win32.zip package contains incorrect Console_Getopt version Console_Getopt-1.0.tgz

Install with this package is impossible due to the absence of Console_Getopt::getopt2() function, which appeared only in version Console_Getopt-1.2.tgz

Call to this function is being made from system::_parseArgs()
During execution of go-pear.bat with the clean copy of distribution package go-pear.php will fail without any error message.

Reproduce code:
---------------
---
    function _parseArgs($argv, $short_options, $long_options = null)
    {
        if (!is_array($argv) && $argv !== null) {
            $argv = preg_split('/\s+/', $argv);
        }
        return Console_Getopt::getopt2($argv, $short_options);
    }
---


Actual result:
--------------
Start of function trace
   10.3547          0     -> pear_config->store() C:\WINNT\httpd\.PHP\PEAR\go-pear.php:718
   10.3561          0       -> pear_config->writeconfigfile(NULL, 'user', NULL) C:\TEMP\gop24.tmp\PEAR\Config.php:1048
   10.3581          0         -> pear_config->_encodeoutput(array ('preferred_state' => 'stable', 'bin_dir' => 'C:\\WINNT\\httpd\\.PHP', 'php_dir' => 'C:\\WINNT\\httpd\\.PHP\\pear', 'doc_dir' => 'C:\\WINNT\\httpd\\.PHP\\pear\\docs', 'data_dir' => 'C:\\WINNT\\httpd\\.PHP\\pear\\data', 'test_dir' => 'C:\\WINNT\\httpd\\.PHP\\pear\\tests', 'php_bin' => 'C:\\WINNT\\httpd\\.PHP\\cli\\php.exe')) C:\TEMP\gop24.tmp\PEAR\Config.php:579
   10.3625          0         -> dirname('C:\\WINNT\\pear.ini') C:\TEMP\gop24.tmp\PEAR\Config.php:580
   10.3634          0         -> system::mkdir(array (0 => '-p', 1 => 'C:\\WINNT')) C:\TEMP\gop24.tmp\PEAR\Config.php:581
   10.3649          0           -> system::_parseargs(array (0 => '-p', 1 => 'C:\\WINNT'), 'pm:') C:\TEMP\gop24.tmp\System.php:220
   10.3670          0             -> is_array(array (0 => '-p', 1 => 'C:\\WINNT')) C:\TEMP\gop24.tmp\System.php:68
   10.3769          0             -> bail() C:\WINNT\httpd\.PHP\PEAR\go-pear.php:0
End of function trace

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-12 07:57 UTC] pajoye@php.net
All my fault. It should be fixed in the next release (for both php5 and php4).

PHP5b4 will be released today and PHP4.3.5 later this week.

thanks for the report,

pierre
 [2004-02-17 05:14 UTC] pajoye@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of the package, which you can download at 
http://pear.php.net/packages.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 02:01:27 2024 UTC