Bug #66279 [NEW]: parse error problem starting with 5.5.0
| From: | felixl at densi dot com | Date: | Thu, 12 Dec 2013 19:43:43 +0000 |
| Subject: | Bug #66279 [NEW]: parse error problem starting with 5.5.0 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-183275@lists.php.net to get a copy of this message | ||
From: felixl at densi dot com
Operating system: x86 Windows and linux
PHP version: 5.5.7
Package: *General Issues
Bug Type: Bug
Bug description:parse error problem starting with 5.5.0
Description:
------------
Problem does not exist in 5.4.9 (windows tested)
Problem exist in 5.5.0 (windows tested)
Problem exist in 5.5.6 & 5.5.7 (ubuntu linux x86 tested)
@see link with code
The code is part of my symfony project (using propel db)
code is generated with propel model generator
(php app/console propel:model:build)
using latest propel 1.x
But symfony and propel are not the problem here.
Valid php should not give a parse error.
to test
- rename file to .php
php <path-to-file>
Test script:
---------------
http://www.densi.com/phpError/BaseCrossRefStockCode.php.txt
Expected result:
----------------
Result on php 5.4.9 and below :
Fatal error: Class 'BaseObject' not found in <path-to-file> on line 37
Actual result:
--------------
result on php >= 5.5.0:
Parse error: syntax error, unexpected 'YIELD' (T_YIELD) in
<path-to-file> on line 889
--
Edit bug report at https://bugs.php.net/bug.php?id=66279&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66279&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66279&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66279&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66279&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66279&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66279&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66279&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66279&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66279&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66279&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66279&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66279&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66279&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66279&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66279&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66279&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66279&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66279&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66279&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66279&r=mysqlcfg