Bug #65764 [Opn->Asn]: generators/throw_rethrow FAIL with ZEND_COMPILE_EXTENDED_INFO
| From: | nikic@php.net | Date: | Sat, 30 Nov 2013 12:45:04 +0000 |
| Subject: | Bug #65764 [Opn->Asn]: generators/throw_rethrow FAIL with ZEND_COMPILE_EXTENDED_INFO | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183028@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65764&edit=1
ID: 65764
Updated by: nikic@php.net
Reported by: xuefer at gmail dot com
Summary: generators/throw_rethrow FAIL with
ZEND_COMPILE_EXTENDED_INFO
-Status: Open
+Status: Assigned
Type: Bug
Package: Scripting Engine problem
Operating System: Linux
PHP Version: 5.5.4
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Verified on master. Easy way to test without source modifications is
sapi/cli/php -e.
Previous Comments:
------------------------------------------------------------------------
[2013-09-26 08:45:04] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65764&edit=1