/PHP-8.4/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 | bug77325.phpt | 15 foreach ($constants as $constant) { 16 var_dump($constant->class); 17 var_dump($constant->getDeclaringClass()->getName()); 20 $constant = new ReflectionClassConstant(Bar::class, 'FOO'); 21 var_dump($constant->class); 22 var_dump($constant->getDeclaringClass()->getName());
|
/PHP-8.4/Zend/Optimizer/ |
H A D | compact_literals.c | 179 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals() 497 opline->op1.constant = map[opline->op1.constant]; in zend_optimizer_compact_literals() 500 opline->op2.constant = map[opline->op2.constant]; in zend_optimizer_compact_literals() 528 opline->op2.constant, in zend_optimizer_compact_literals() 529 opline->op1.constant, in zend_optimizer_compact_literals() 636 opline->op1.constant, in zend_optimizer_compact_literals() 637 opline->op2.constant, in zend_optimizer_compact_literals() 681 opline->op1.constant, in zend_optimizer_compact_literals() 682 opline->op2.constant, in zend_optimizer_compact_literals() 708 opline->op2.constant, in zend_optimizer_compact_literals() [all …]
|
/PHP-8.4/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 18 constant('A::protectedConst'); 27 Cannot access protected constant A::protectedConst
|
H A D | constants_visibility_003.phpt | 2 Class private constant visibility 18 constant('A::privateConst'); 27 Cannot access private constant A::privateConst
|
/PHP-8.4/ext/mysqli/tests/ |
H A D | deprecated_constants.phpt | 8 echo constant('MYSQLI_NO_DATA')."\n"; 9 echo constant('MYSQLI_DATA_TRUNCATED')."\n"; 10 echo constant('MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED')."\n"; 11 echo constant('MYSQLI_SERVER_QUERY_NO_INDEX_USED')."\n"; 12 echo constant('MYSQLI_SERVER_QUERY_WAS_SLOW')."\n"; 13 echo constant('MYSQLI_SERVER_PS_OUT_PARAMS')."\n"; 14 echo constant('MYSQLI_IS_MARIADB')."\n";
|
/PHP-8.4/Zend/tests/ |
H A D | 018.phpt | 2 constant() tests 7 var_dump(constant("")); 13 var_dump(constant("TEST_CONST")); 16 var_dump(constant("TEST_CONST2")); 21 Undefined constant ""
|
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 | dynamic_class_const_fetch.phpt | 2 Dynamic class constant fetch 49 Cannot use value of type null as class constant name 52 Cannot use value of type null as class constant name 57 Cannot use value of type int as class constant name 58 Cannot use value of type int as class constant name 59 Cannot use value of type int as class constant name 60 Cannot use value of type int as class constant name 61 Cannot use value of type array as class constant name 62 Cannot use value of type array as class constant name 63 Cannot use value of type array as class constant name [all …]
|
H A D | bug51791.phpt | 2 Bug #51791 (constant() failed to check undefined constant and php interpreter stopped) 10 constant('A::B1'); 17 Undefined constant A::B1
|
H A D | gh10356.phpt | 2 GH-10356: Incorrect line number of constant in constant expression 16 Fatal error: Uncaught Error: Undefined constant "DOES_NOT_EXIST" in %s:5 18 #0 %s(%d): [constant expression]()
|
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 14 #0 %s(%d): [constant expression]()
|
H A D | bug43344_1.phpt | 2 Bug #43344.1 (Wrong error message for undefined namespace constant) 42 Undefined constant "Foo\bar" 43 Undefined constant "Foo\bar" 44 Undefined constant "Foo\bar" 45 Undefined constant "Foo\bar"
|
H A D | gh10486_2.phpt | 2 Assertion error when attempting constant eval of dynamic class constant fetch 8 Fatal error: Uncaught Error: Undefined constant "y" in %s:%d
|
H A D | bug44827.phpt | 2 Bug #44827 (define() allows :: in constant names) 20 define(): Argument #1 ($constant_name) cannot be a class constant 21 define(): Argument #1 ($constant_name) cannot be a class constant
|
/PHP-8.4/ext/standard/tests/ |
H A D | constant_with_typed_class_constant.phpt | 2 Calling constant() with a typed class constant 13 var_dump(constant("FOO::CONST1")); 16 constant("FOO::CONST2"); 25 Cannot assign stdClass to class constant Foo::CONST2 of type array
|
/PHP-8.4/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')); 16 Cannot access private constant Foo::C1
|
/PHP-8.4/Zend/tests/traits/ |
H A D | constant_018.phpt | 2 Referencing trait constants directly on calling \constant() causes a fatal error 10 var_dump(\constant('TestTrait::Constant')); 13 Fatal error: Uncaught Error: Cannot access trait constant TestTrait::Constant directly in %s:%d 15 #0 %s: constant('TestTrait::Cons...')
|
/PHP-8.4/ext/standard/tests/math/ |
H A D | constants.phpt | 26 foreach($constants as $constant) { 27 printf("%-10s: %s\n", $constant, constant($constant));
|
/PHP-8.4/ext/intl/tests/ |
H A D | formatter_format_and_parse_errors.phpt | 12 /* Unknown type constant */ 58 numfmt_format(): Argument #3 ($type) must be a NumberFormatter::TYPE_* constant 59 NumberFormatter::format(): Argument #2 ($type) must be a NumberFormatter::TYPE_* constant 60 numfmt_parse(): Argument #3 ($type) must be a NumberFormatter::TYPE_* constant 61 NumberFormatter::parse(): Argument #2 ($type) must be a NumberFormatter::TYPE_* constant 64 numfmt_format(): Argument #3 ($type) cannot be NumberFormatter::TYPE_CURRENCY constant, use numfmt_… 67 NumberFormatter::format(): Argument #2 ($type) cannot be NumberFormatter::TYPE_CURRENCY constant, u… 70 numfmt_parse(): Argument #3 ($type) cannot be NumberFormatter::TYPE_CURRENCY constant, use numfmt_p… 73 NumberFormatter::parse(): Argument #2 ($type) cannot be NumberFormatter::TYPE_CURRENCY constant, us…
|
/PHP-8.4/Zend/tests/attributes/deprecated/functions/ |
H A D | message_004.phpt | 2 #[\Deprecated]: Message from constant. 10 define('DEPRECATION_MESSAGE', 'from constant'); 16 Deprecated: Function test() is deprecated, from constant in %s on line %d
|
H A D | message_005.phpt | 2 #[\Deprecated]: Message from protected class constant. 7 protected const DEPRECATION_MESSAGE = 'from class constant'; 22 Deprecated: Method Clazz::test() is deprecated, from class constant in %s on line %d
|
/PHP-8.4/Zend/tests/new_without_parentheses/ |
H A D | new_with_ctor_arguments_parentheses.phpt | 8 const C = 'constant' . PHP_EOL; 85 constant 86 constant 87 constant 88 constant 89 constant 90 constant
|
/PHP-8.4/Zend/tests/type_declarations/ |
H A D | scalar_constant_defaults.phpt | 64 echo "Testing int with default null constant" . PHP_EOL; 71 echo "Testing int with null null constant" . PHP_EOL; 78 echo "Testing nullable int with default null constant" . PHP_EOL; 81 echo "Testing nullable int with null null constant" . PHP_EOL; 98 Testing int with default null constant 100 Testing int with null null constant 102 Testing nullable int with default null constant 104 Testing nullable int with null null constant
|