Bug #66279 [Com]: parse error problem starting with 5.5.0

From: Date: Thu, 12 Dec 2013 19:45:47 +0000
Subject: Bug #66279 [Com]: parse error problem starting with 5.5.0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183276@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66279&edit=1 ID: 66279 Comment by: felixl at densi dot com Reported by: felixl at densi dot com Summary: parse error problem starting with 5.5.0 Status: Open Type: Bug Package: *General Issues Operating System: x86 Windows and linux PHP Version: 5.5.7 Block user comment: N Private report: N New Comment: tested on windows 7 x64 (fully patch) tested on ubuntu 13.10 x86 Previous Comments: ------------------------------------------------------------------------ [2013-12-12 19:43:42] felixl at densi dot com 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 this bug report at https://bugs.php.net/bug.php?id=66279&edit=1

« previous php.bugs (#183276) next »