PHP Classes

PHP 5.5 - YIELD = reserved word

Recommend this page to a friend!

      Financial  >  All threads  >  PHP 5.5 - YIELD = reserved word  >  (Un) Subscribe thread alerts  
Subject:PHP 5.5 - YIELD = reserved word
Summary:For PHP 5.5 the method YIELD should be renamed
Messages:4
Author:Jeroen Laarhoven
Date:2014-06-10 13:45:10
 

  1. PHP 5.5 - YIELD = reserved word   Reply   Report abuse  
Picture of Jeroen Laarhoven Jeroen Laarhoven - 2014-06-10 13:45:11
the method YIELD should be renamed, because in PHP 5.5 this is a reserved word.

  2. Re: PHP 5.5 - YIELD = reserved word   Reply   Report abuse  
Picture of Steve Almond Steve Almond - 2014-08-20 15:09:48 - In reply to message 1 from Jeroen Laarhoven
Agreed.

Error is PHP Parse error: syntax error, unexpected 'YIELD' (T_YIELD), expecting identifier (T_STRING) in /var/www/vendor/phpclasses/financial_class/financial_class.php on line 1365

  3. Re: PHP 5.5 - YIELD = reserved word   Reply   Report abuse  
Picture of Steve Almond Steve Almond - 2014-08-20 15:15:50 - In reply to message 2 from Steve Almond
Bizarrely, the YIELD function is practically empty, with the comment

// TODO: Not yet implemented

It's safe to delete. :-)

  4. Re: PHP 5.5 - YIELD = reserved word   Reply   Report abuse  
Picture of Steve Almond Steve Almond - 2014-12-19 10:43:32 - In reply to message 3 from Steve Almond
*bump*

It's four months since the bug-report, and this Class still doesn't compile under PHP 5.5. Shame.