php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65764 generators/throw_rethrow FAIL with ZEND_COMPILE_EXTENDED_INFO
Submitted: 2013-09-26 08:45 UTC Modified: 2013-11-30 12:45 UTC
From: xuefer at gmail dot com Assigned: nikic (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 5.5.4 OS: Linux
Private report: No CVE-ID: None
 [2013-09-26 08:45 UTC] xuefer at gmail dot com
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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-11-30 12:45 UTC] nikic@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: nikic
 [2013-11-30 12:45 UTC] nikic@php.net
Verified on master. Easy way to test without source modifications is `sapi/cli/php -e`.
 [2013-12-01 12:48 UTC] nikic@php.net
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=02dca18b9045029e75d672b8667c1411dde5ca34
Log: Fix bug #65764
 [2013-12-01 12:48 UTC] nikic@php.net
-Status: Assigned +Status: Closed
 [2013-12-01 22:10 UTC] ab@php.net
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=02dca18b9045029e75d672b8667c1411dde5ca34
Log: Fix bug #65764
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC