mirror of
https://github.com/php/php-src.git
synced 2026-04-12 10:33:11 +02:00
The extension name should match the name of the ext/ directory, otherwise it will not get picked up by run-tests. It would be possible to remap this in run-tests, but I think it's better to rename the extension to follow the standard format. Other extensions also use underscore instead of hyphen (e.g. pdo_mysql and not pdo-mysql). Of course, the ./configure option remains hyphenated. Closes GH-6613.
24 lines
621 B
PHP
24 lines
621 B
PHP
--TEST--
|
|
Bug #78239: Deprecation notice during string conversion converted to exception hangs
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("zend_test")) die("skip requires zend_test extension"); ?>
|
|
--FILE--
|
|
<?php
|
|
function handleError($level, $message, $file = '', $line = 0, $context = [])
|
|
{
|
|
throw new ErrorException($message, 0, $level, $file, $line);
|
|
}
|
|
|
|
set_error_handler('handleError');
|
|
|
|
$r = new _ZendTestClass;
|
|
(string)$r ?: "";
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught ErrorException: Method _ZendTestClass::__toString() is deprecated in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): handleError(%s)
|
|
#1 {main}
|
|
thrown in %s on line %d
|