[php-src] master: Fix test that behaves differently w and w/o opcache
| From: | Ilija Tovilo | Date: | Wed, 03 Apr 2024 11:25:25 +0000 |
| Subject: | [php-src] master: Fix test that behaves differently w and w/o opcache | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-127939@lists.php.net to get a copy of this message | ||
Author: Ilija Tovilo (iluuu1994)
Date: 2024-04-03T13:24:57+02:00
Commit: https://github.com/php/php-src/commit/e5f4cdd62f020c2e48e0b469bd47a641029f8e05
Raw diff: https://github.com/php/php-src/commit/e5f4cdd62f020c2e48e0b469bd47a641029f8e05.diff
Fix test that behaves differently w and w/o opcache
Changed paths:
M Zend/tests/frameless_jmp_004.phpt
Diff:
diff --git a/Zend/tests/frameless_jmp_004.phpt b/Zend/tests/frameless_jmp_004.phpt
index cea7348b86ae..2597754641ed 100644
--- a/Zend/tests/frameless_jmp_004.phpt
+++ b/Zend/tests/frameless_jmp_004.phpt
@@ -9,11 +9,9 @@ function declare_local_class_exists() {
return true;
}
}
-var_dump(CLASS_EXISTS('Foo'));
declare_local_class_exists();
var_dump(CLASS_EXISTS('Foo'));
?>
--EXPECT--
-bool(false)
string(16) "Foo\class_exists"
bool(true)