mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
17 lines
248 B
PHP
17 lines
248 B
PHP
--TEST--
|
|
There should be no namespace fallback when using the defined() function
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace Foo;
|
|
|
|
var_dump(\defined('Foo\PHP_INT_MAX'));
|
|
|
|
$const = 'Foo\PHP_INT_MAX';
|
|
var_dump(\defined($const));
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(false)
|