Bug #79093 [NEW]: david@grudl.com
| From: | david at grudl dot com | Date: | Fri, 10 Jan 2020 11:00:43 +0000 |
| Subject: | Bug #79093 [NEW]: david@grudl.com | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-224825@lists.php.net to get a copy of this message | ||
From: david at grudl dot com
Operating system:
PHP version: 7.4.1
Package: Output Control
Bug Type: Bug
Bug description:david@grudl.com
Description:
------------
In PHP 7.4 class_exists($c, true) can return false and class_exists($c,
false) can return true in one moment.
Test script:
---------------
file classes.php:
-----
<?php
class C1
{
function f($arg)
{
}
}
class C2 extends C1
{
function f()
{
}
}
?>
file test.php:
-------
<?php
set_error_handler(function () {
var_dump(class_exists('C2', true)); // returns false
var_dump(class_exists('C2', false)); // returns true
});
include 'classes.php';
?>
Expected result:
----------------
Both return the same value.
Actual result:
--------------
var_dump(class_exists('C2', true)); // returns false
var_dump(class_exists('C2', false)); // returns true
--
Edit bug report at https://bugs.php.net/bug.php?id=79093&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79093&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79093&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79093&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79093&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79093&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79093&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79093&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79093&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79093&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79093&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79093&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79093&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79093&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79093&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79093&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79093&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79093&r=mysqlcfg