/PHP-7.1/Zend/tests/ |
H A D | 018.phpt | 2 constant() tests 6 var_dump(constant()); 7 var_dump(constant("", "")); 8 var_dump(constant("")); 10 var_dump(constant(array())); 13 var_dump(constant("TEST_CONST")); 16 var_dump(constant("TEST_CONST2")); 21 Warning: constant() expects exactly 1 parameter, 0 given in %s on line %d 24 Warning: constant() expects exactly 1 parameter, 2 given in %s on line %d 27 Warning: constant(): Couldn't find constant in %s on line %d [all …]
|
H A D | bug51791.phpt | 2 Bug #51791 (constant() failed to check undefined constant and php interpreter stoped) 9 var_dump(constant('A::B1')); 13 Warning: constant(): Couldn't find constant A::B1 in %s on line %d
|
H A D | constants_001.phpt | 12 var_dump(constant('foo')); 13 var_dump(constant('1')); 14 var_dump(constant(1)); 15 var_dump(constant('')); 16 var_dump(constant('1foo'));
|
H A D | bug43344_1.phpt | 2 Bug #43344.1 (Wrong error message for undefined namespace constant) 22 Notice: Use of undefined constant bar - assumed 'bar' in %sbug43344_1.php on line 13 25 Notice: Use of undefined constant bar - assumed 'bar' in %sbug43344_1.php on line 3 28 Notice: Use of undefined constant bar - assumed 'bar' in %sbug43344_1.php on line 6 31 Notice: Use of undefined constant bar - assumed 'bar' in %sbug43344_1.php on line 9
|
H A D | ns_076.phpt | 14 Notice: Use of undefined constant unknown - assumed 'unknown' in %sns_076.php on line %d 16 Notice: Use of undefined constant unknown - assumed 'unknown' in %sns_076.php on line %d 18 Notice: Use of undefined constant unknown - assumed 'unknown' in %sns_076.php on line %d 25 Fatal error: Uncaught Error: Undefined constant 'unknown' in %sns_076.php:%d
|
H A D | constant_expressions_self_referencing_array.phpt | 2 Self-referencing constant expression (part of a constant AST) 12 Fatal error: Uncaught Error: Cannot declare self-referencing constant 'self::BAR' in %s:%d
|
H A D | ns_049.phpt | 2 049: __NAMESPACE__ constant and runtime names (php name) 7 var_dump(constant(__NAMESPACE__ . "\\FOO"));
|
H A D | ns_048.phpt | 2 048: __NAMESPACE__ constant and runtime names (ns name) 9 var_dump(constant(__NAMESPACE__ . "\\FOO"));
|
H A D | break_error_002.phpt | 2 'break' error (operator with non-constant operand) 10 Fatal error: 'break' operator with non-constant operand is no longer supported in %sbreak_error_002…
|
H A D | errmsg_041.phpt | 2 errmsg: instanceof expects an object instance, constant given 11 Fatal error: instanceof expects an object instance, constant given in %s on line %d
|
H A D | constants_003.phpt | 12 var_dump(foo, namespace\foo, \foo\foo, \foo, constant('foo'), constant('foo\foo'));
|
H A D | bug43344_10.phpt | 2 Bug #43344.10 (Wrong error message for undefined namespace constant) 8 Fatal error: Uncaught Error: Undefined constant 'bar' in %sbug43344_10.php:%d
|
/PHP-7.1/ext/reflection/tests/ |
H A D | ReflectionClass_hasConstant_001.phpt | 17 echo "Check existing constant: "; 19 echo "Check existing constant, different case: "; 21 echo "Check absent constant: "; 26 echo "Check inherited constant: "; 28 echo "Check absent constant: "; 32 Check existing constant: bool(true) 33 Check existing constant, different case: bool(false) 34 Check absent constant: bool(false) 35 Check inherited constant: bool(true) 36 Check absent constant: bool(false)
|
H A D | ReflectionClassConstant_basic1.phpt | 6 function reflectClassConstant($base, $constant) { 7 $constInfo = new ReflectionClassConstant($base, $constant); 10 echo "Reflecting on class constant $class::$constant\n\n"; 14 var_dump(ReflectionClassConstant::export($base, $constant, true)); 16 var_dump(ReflectionClassConstant::export($base, $constant, false)); 53 Reflecting on class constant TestClass::PUB 87 Reflecting on class constant TestClass::PROT 121 Reflecting on class constant TestClass::PRIV 155 Reflecting on class constant TestClass::PRIV
|
/PHP-7.1/tests/classes/ |
H A D | constants_basic_002.phpt | 2 Basic class support - defining and reading a class constant. 10 echo "\nRead class constant.\n"; 13 echo "\nFail to read class constant from instance.\n"; 17 echo "\nClass constant not visible in object var_dump.\n"; 21 Read class constant. 24 Fail to read class constant from instance. 29 Class constant not visible in object var_dump.
|
H A D | constants_visibility_002.phpt | 2 Class protected constant visibility 17 constant('A::protectedConst'); 26 #0 %s(14): constant('A::protectedCon...')
|
H A D | constants_visibility_003.phpt | 2 Class private constant visibility 17 constant('A::privateConst'); 26 #0 %s(14): constant('A::privateConst')
|
H A D | constants_error_001.phpt | 2 Error case: duplicate class constant definition 12 Fatal error: Cannot redefine class constant myclass::myConst in %s on line 5
|
/PHP-7.1/ext/opcache/Optimizer/ |
H A D | compact_literals.c | 97 LITERAL_INFO(constant, kind, 0, slots, related); in optimizer_literal_obj_info() 111 LITERAL_INFO_CLASS(constant, kind, 1, slots, related, op.constant); in optimizer_literal_class_info() 113 LITERAL_INFO(constant, kind, 0, slots, related); in optimizer_literal_class_info() 157 opline->op2.constant, in zend_optimizer_compact_literals() 171 opline->op2.constant, in zend_optimizer_compact_literals() 197 opline->op2.constant, in zend_optimizer_compact_literals() 217 opline->op1.constant, in zend_optimizer_compact_literals() 253 opline->op2.constant, in zend_optimizer_compact_literals() 276 opline->op2.constant, in zend_optimizer_compact_literals() 507 opline->op1.constant = map[opline->op1.constant]; in zend_optimizer_compact_literals() [all …]
|
H A D | optimize_func_calls.c | 34 Z_TYPE(op_array->literals[(opline)->op1.constant]) == IS_STRING) 37 Z_TYPE(op_array->literals[(opline)->op2.constant]) == IS_STRING) 139 opline->op1.constant = zend_optimizer_add_literal(op_array, &zv); in zend_try_inline_call() 194 …_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->… in zend_optimize_func_calls() 196 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls() 201 …_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->… in zend_optimize_func_calls() 202 literal_dtor(&op_array->literals[fcall->op2.constant]); in zend_optimize_func_calls() 203 literal_dtor(&op_array->literals[fcall->op2.constant + 2]); in zend_optimize_func_calls() 204 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls()
|
/PHP-7.1/tests/lang/ |
H A D | bug44827.phpt | 2 Bug #44827 (Class error when trying to access :: as constant) 10 var_dump(constant('::')); 15 Warning: constant(): Couldn't find constant :: in %s on line %d
|
/PHP-7.1/ext/standard/tests/math/ |
H A D | constants.phpt | 26 foreach($constants as $constant) { 27 printf("%-10s: %s\n", $constant, constant($constant));
|
/PHP-7.1/ext/standard/tests/general_functions/ |
H A D | bug72920.phpt | 2 Bug #72920 (Accessing a private constant using constant() creates an exception AND warning) 10 var_dump(constant('Foo::C1'));
|
/PHP-7.1/ext/opcache/tests/ |
H A D | bug71843.phpt | 16 Notice: Use of undefined constant E - assumed 'E' in %sbug71843.php on line %d 20 Notice: Use of undefined constant R - assumed 'R' in %sbug71843.php on line %d 24 Notice: Use of undefined constant See - assumed 'See' in %sbug71843.php on line %d
|
H A D | bug66440.phpt | 2 Bug #66440 (Optimisation of conditional JMPs based on pre-evaluate constant function calls) 12 if(constant('PHP_BINARY')) {
|