php-src/Zend/tests/defined_fn_no_ns_fallback.phpt
2019-04-22 12:01:04 +02:00

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)