Bug #65764 [Asn->Csd]: generators/throw_rethrow FAIL with ZEND_COMPILE_EXTENDED_INFO
| From: | nikic@php.net | Date: | Sun, 01 Dec 2013 12:48:38 +0000 |
| Subject: | Bug #65764 [Asn->Csd]: generators/throw_rethrow FAIL with ZEND_COMPILE_EXTENDED_INFO | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183040@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: Assigned
+Status: Closed
Type: Bug
Package: Scripting Engine problem
Operating System: Linux
PHP Version: 5.5.4
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=02dca18b9045029e75d672b8667c1411dde5ca34
Log: Fix bug #65764
Previous Comments:
------------------------------------------------------------------------
[2013-11-30 12:45:04] nikic@php.net
Verified on master. Easy way to test without source modifications is
sapi/cli/php -e.
------------------------------------------------------------------------
[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