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

Bug #20991 Strict Standards: startSession and run methods in PEAR_Task_Postinstallscript.
Submitted: 2015-12-11 13:37 UTC
From: kguest Assigned: kguest
Status: Closed Package: PEAR (version 1.10.1)
PHP Version: 5.5.9 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 27 - 6 = ?

 
 [2015-12-11 13:37 UTC] kguest (Ken Guest)
Description: ------------ The startSession and run methods in PEAR_Task_Postinstallscript don't conform to the function signatures in the base class, causing errors. Test script: --------------- Attempt to generate package xml file for elections in the pearweb repository and you'll see this problems being reported. Actual result: -------------- PHP Strict standards: Declaration of PEAR_Task_Postinstallscript::startSession() should be compatible with PEAR_Task_Common::startSession($pkg, $contents, $dest) in /usr/share/php/PEAR/Task/Postinstallscript.php on line 35 PHP Stack trace: PHP 1. {main}() /home/kguest/dev/code/pearweb/package_election.php:0 PHP 2. PEAR_PackageFileManager2->initPostinstallScript() /home/kguest/dev/code/pearweb/package_election.php:38 PHP 3. include_once() /usr/share/php/PEAR/PackageFileManager2.php:946 PHP 4. require_once() /usr/share/php/PEAR/Task/Postinstallscript/rw.php:18 PHP Strict standards: Declaration of PEAR_Task_Postinstallscript::run() should be compatible with PEAR_Task_Common::run($tasks) in /usr/share/php/PEAR/Task/Postinstallscript.php on line 35 PHP Stack trace: PHP 1. {main}() /home/kguest/dev/code/pearweb/package_election.php:0 PHP 2. PEAR_PackageFileManager2->initPostinstallScript() /home/kguest/dev/code/pearweb/package_election.php:38 PHP 3. include_once() /usr/share/php/PEAR/PackageFileManager2.php:946 PHP 4. require_once() /usr/share/php/PEAR/Task/Postinstallscript/rw.php:18

Comments

 [2015-12-11 13:37 UTC] kguest (Ken Guest)
-Assigned To: +Assigned To: kguest
 [2015-12-11 13:39 UTC] kguest (Ken Guest)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. 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. Fixed in https://github.com/pear/pear-core/commit/057a9f649c7f275f666bc1ac566e61f78cc7f13c