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

Bug #2098 try() function of Body.php incompatible with PHP5
Submitted: 2004-08-10 00:17 UTC
From: troy at versiontwo dot com dot au Assigned: quipo
Status: Closed Package: Mail_Queue
PHP Version: 5.0.0 OS: Fedora Core 2
Roadmaps: (Not assigned)    
Subscription  


 [2004-08-10 00:17 UTC] troy at versiontwo dot com dot au
Description: ------------ Pretty simple one this. Just need to rename the try() function in the Queue/Body.php file. Last function (line 330). This function name conflicts with the next error handling features of php5.

Comments

 [2004-08-17 13:30 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!
 [2004-08-17 13:53 UTC] troy at versiontwo dot com dot au
I could only find a list of reserved words for php4. However, I can assure you that the following words are now reserved for php5: try, catch, throw, exception, public, private, protected, abstract, interface and final. Example: class TryTest { private $value; public function __construct($someValue) { $this->try($someValue); } private function try($value) { $this->value = $value; } } $tt = new TryTest('Test'); Causes the following error: Parse error: parse error, unexpected T_TRY, expecting T_STRING
 [2004-08-17 14:36 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!