From:             xuefer at gmail dot com
Operating system: Linux
PHP version:      5.5.4
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:generators/throw_rethrow FAIL with ZEND_COMPILE_EXTENDED_INFO

Description:
------------
with CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO;
the following tests fail
FAIL Generator::throw() where the exception is caught in the generator 
[Zend/tests/generators/throw_caught.phpt]
FAIL Generator::throw() where the generator throws a different exception 
[Zend/tests/generators/throw_rethrow.phpt]


============ ~/src/php/php5.5/Zend/tests/generators/throw_caught.log

---- EXPECTED OUTPUT
exception 'RuntimeException' with message 'Test' in %s:%d
Stack trace:
#0 {main}

string(6) "result"
---- ACTUAL OUTPUT
Fatal error: Uncaught exception 'RuntimeException' with message 'Test' in 
/home/xuefer/src/php/php5.5/Zend/tests/generators/throw_caught.php:14
Stack trace:
#0 {main}
  thrown in
/home/xuefer/src/php/php5.5/Zend/tests/generators/throw_caught.php 
on line 14
---- FAILED
============ ~/src/php/php5.5/Zend/tests/generators/throw_rethrow.log

---- EXPECTED OUTPUT
Caught: exception 'RuntimeException' with message 'throw' in %s:%d
Stack trace:
#0 {main}


Fatal error: Uncaught exception 'LogicException' with message 'new throw'
in 
%s:%d
Stack trace:
#0 [internal function]: gen()
#1 %s(%d): Generator->throw(Object(RuntimeException))
#2 {main}
  thrown in %s on line %d
---- ACTUAL OUTPUT
Fatal error: Uncaught exception 'RuntimeException' with message 'throw' in

/home/xuefer/src/php/php5.5/Zend/tests/generators/throw_rethrow.php:14
Stack trace:
#0 {main}
  thrown in
/home/xuefer/src/php/php5.5/Zend/tests/generators/throw_rethrow.php 
on line 14
---- FAILED



-- 
Edit bug report at https://bugs.php.net/bug.php?id=65764&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65764&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65764&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=65764&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65764&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65764&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65764&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65764&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65764&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65764&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65764&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=65764&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=65764&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65764&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65764&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65764&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65764&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65764&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65764&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65764&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65764&r=mysqlcfg

Reply via email to