Bug #78239 [NEW]: set_error_handler() blocked
| From: | cxlblm at gmail dot com | Date: | Tue, 02 Jul 2019 10:06:04 +0000 |
| Subject: | Bug #78239 [NEW]: set_error_handler() blocked | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-221575@lists.php.net to get a copy of this message | ||
From: cxlblm at gmail dot com
Operating system: Linux 788f0b0a7ad1 4.9.125-linux
PHP version: 7.4.0alpha2
Package: Reflection related
Bug Type: Bug
Bug description:set_error_handler() blocked
Description:
------------
Deprecated: Function ReflectionType::__toString() is deprecated with
set_error_handler blocked
Test script:
---------------
<?php
function handleError($level, $message, $file = '', $line = 0, $context =
[])
{
throw new ErrorException($message, 0, $level, $file, $line);
}
set_error_handler('handleError');
class A
{
public function abc(): bool
{
return false;
}
}
$r = new ReflectionMethod("A", "abc");
(string)$r->getReturnType();
--
Edit bug report at https://bugs.php.net/bug.php?id=78239&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78239&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78239&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78239&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78239&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78239&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78239&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78239&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78239&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78239&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78239&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78239&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78239&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78239&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78239&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78239&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78239&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78239&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78239&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78239&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78239&r=mysqlcfg