php-src/Zend/tests/frameless_jmp_004.phpt
Ilija Tovilo 631bc81607
Implement stackless internal function calls
Co-authored-by: Dmitry Stogov <dmitry@zend.com>

Closes GH-12461
2024-02-06 17:42:28 +01:00

20 lines
343 B
PHP

--TEST--
Frameless jmp
--FILE--
<?php
namespace Foo;
function declare_local_class_exists() {
function class_exists() {
var_dump(__FUNCTION__);
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)