Wrong expectation in tests (for some reason backtraces contained invlalid extra frame at the top)

This commit is contained in:
Dmitry Stogov 2014-07-07 18:09:17 +04:00
parent 4dd7c63d1e
commit 477bd49cca
4 changed files with 7 additions and 9 deletions

View file

@ -12,7 +12,6 @@ foreach ($gen as &$value) { }
--EXPECTF--
Fatal error: Uncaught exception 'Exception' with message 'You can only iterate a generator by-reference if it declared that it yields by-reference' in %s:%d
Stack trace:
#0 %s(%d): unknown()
#1 {main}
#0 {main}
thrown in %s on line %d

View file

@ -56,7 +56,6 @@ Stack trace:
exception 'Exception' with message 'Cannot traverse an already closed generator' in %s:%d
Stack trace:
#0 %s(%d): unknown()
#1 {main}
#0 {main}
in generator

View file

@ -2253,6 +2253,7 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
}
if (!call) {
call = ptr;
ptr = ptr->prev_execute_data;
}
array_init(return_value);

View file

@ -15,8 +15,7 @@ Bug #54911 (Access to a undefined member in inherit SoapClient may cause Segment
--EXPECTF--
Fatal error: Uncaught SoapFault exception: [Client] Access to undeclared static property: XSoapClient::$crash in %sbug54911.php:4
Stack trace:
#0 %sbug54911.php(4): XSoapClient->__doRequest()
#1 [internal function]: XSoapClient->__doRequest('<?xml version="...', '', '#', 1, 0)
#2 %sbug54911.php(8): SoapClient->__soapCall('', Array)
#3 {main}
thrown in %sbug54911.php on line 4
#0 [internal function]: XSoapClient->__doRequest('<?xml version="...', '', '#', 1, 0)
#1 %sbug54911.php(8): SoapClient->__soapCall('', Array)
#2 {main}
thrown in %sbug54911.php on line 4