Doc #80515 [NEW]: The behavior of ReflectionClass::getMethods() changed in 7.4

From: Date: Mon, 14 Dec 2020 19:51:28 +0000
Subject: Doc #80515 [NEW]: The behavior of ReflectionClass::getMethods() changed in 7.4
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18258@lists.php.net to get a copy of this message
From: mark at fastmail dot net Operating system: Windows PHP version: 7.4.13 Package: Unknown/Other Function Bug Type: Documentation Problem Bug description:The behavior of ReflectionClass::getMethods() changed in 7.4 Description: ------------ Specifying logically ORed filter arguments results in "and" behavior in 7.3, but results in "or" behavior in 7.4. The provided test script returns both methods in 7.4, but only the first method in 7.3. Should this change be added to the "Backward Incompatible Changes" page? Test script: --------------- <?php class A{ static function one(){} function two(){} } $class = new ReflectionClass(A::class); var_dump($class->getMethods(ReflectionMethod::IS_PUBLIC || ReflectionMethod::IS_STATIC)); -- Edit bug report at https://bugs.php.net/bug.php?id=80515&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80515&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80515&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80515&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80515&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80515&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80515&r=support Expected behavior: https://bugs.php.net/fix.php?id=80515&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80515&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80515&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80515&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80515&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80515&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80515&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80515&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80515&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80515&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80515&r=mysqlcfg

« previous php.doc.bugs (#18258) next »