summaryrefslogtreecommitdiff
path: root/Zend/tests/defined_fn_no_ns_fallback.phpt
blob: 6dc2b51ed60d7c948f9926c1760b486c4d96726b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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)