mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
631bc81607
Co-authored-by: Dmitry Stogov <dmitry@zend.com> Closes GH-12461
20 lines
343 B
PHP
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)
|