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

Bug #5830 Fatal error: Only variables can be passed by reference in /usr/local/share/php/
Submitted: 2005-10-31 10:05 UTC
From: jeroen at terena dot nl Assigned: mike
Status: Closed Package: HTTP_Header
PHP Version: 5.0.5 OS: debian
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-31 10:05 UTC] jeroen at terena dot nl
Description: ------------ Calling send->headers() triggers a fatal error in PHP 505 Fatal error: Only variables can be passed by reference in /usr/local/share/php/ Similar errors occur in other packages.scripts as well due to a change in behaviour between php 5.0.4 and 5.0.4+ IIRC Test script: --------------- $httpCache = new HTTP_Header_Cache(); $httpCache->setLastModified($this->modified); $httpCache->sendHeaders(); Expected result: ---------------- no error. Patch: function getCacheStart() { if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && !$this->isPost()) { $bits = explode(';', $_SERVER['HTTP_IF_MODIFIED_SINCE']); $time = array_shift($bits); $timestamp = strtotime($time); return $timestamp; } return time(); } Actual result: -------------- Fatal error: Only variables can be passed by reference in /usr/local/share/php/

Comments

 [2005-11-08 19:08 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!