/PHP-5.4/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: Undefined constant 'unknown' in %sns_076.php on line %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 | bug43344_10.phpt | 2 Bug #43344.10 (Wrong error message for undefined namespace constant) 8 Fatal error: Undefined constant 'bar' in %sbug43344_10.php on line %d
|
H A D | bug43344_6.phpt | 2 Bug #43344.6 (Wrong error message for undefined namespace constant) 9 Fatal error: Undefined constant 'Foo\bar' in %sbug43344_6.php on line %d
|
H A D | bug43344_11.phpt | 2 Bug #43344.11 (Wrong error message for undefined namespace constant) 11 Fatal error: Undefined constant 'bar' in %sbug43344_11.php on line %d
|
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 | bug43344_12.phpt | 2 Bug #43344.12 (Wrong error message for undefined namespace constant) 11 Fatal error: Undefined constant 'bar' in %sbug43344_12.php on line %d
|
H A D | bug43344_7.phpt | 2 Bug #43344.7 (Wrong error message for undefined namespace constant) 12 Fatal error: Undefined constant 'Foo\bar' in %sbug43344_7.php 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_13.phpt | 2 Bug #43344.13 (Wrong error message for undefined namespace constant) 12 Fatal error: Undefined constant 'bar' in %sbug43344_13.php on line %d
|
H A D | bug43344_8.phpt | 2 Bug #43344.8 (Wrong error message for undefined namespace constant) 12 Fatal error: Undefined constant 'Foo\bar' in %sbug43344_8.php on line %d
|
H A D | bug43344_9.phpt | 2 Bug #43344.9 (Wrong error message for undefined namespace constant) 13 Fatal error: Undefined constant 'Foo\bar' in %sbug43344_9.php on line %d
|
/PHP-5.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)
|
/PHP-5.4/Zend/ |
H A D | zend_language_parser.y | 762 …constant, 0); if ($2.op_type == IS_CONST) { add_function(&$2.u.constant, &$1.u.constant, &$2.u.con… 763 …constant, 0); if ($2.op_type == IS_CONST) { sub_function(&$2.u.constant, &$1.u.constant, &$2.u.con… 851 …constant), Z_STRLEN($2.u.constant)+1); memcpy(&(tmp[1]), Z_STRVAL($2.u.constant), Z_STRLEN($2.u.co… 857 …constant), Z_STRLEN($2.u.constant)+1); memcpy(&(tmp[1]), Z_STRVAL($2.u.constant), Z_STRLEN($2.u.co… 917 …&$$.u.constant); INIT_PZVAL(&$$.u.constant); $$.op_type = IS_CONST; CG(heredoc) = Z_STRVAL($1.u.co… 925 …constant), Z_STRLEN($2.u.constant)+1); memcpy(&(tmp[1]), Z_STRVAL($2.u.constant), Z_STRLEN($2.u.co… 926 …| '+' static_scalar { ZVAL_LONG(&$1.u.constant, 0); add_function(&$2.u.constant, &$1.u.constant, &… 927 …| '-' static_scalar { ZVAL_LONG(&$1.u.constant, 0); sub_function(&$2.u.constant, &$1.u.constant, &… 943 …constant), Z_STRLEN($2.u.constant)+1); memcpy(&(tmp[1]), Z_STRVAL($2.u.constant), Z_STRLEN($2.u.co… 952 /* empty */ { $$.op_type = IS_CONST; INIT_PZVAL(&$$.u.constant); array_init(&$$.u.constant); } [all …]
|
H A D | zend_compile.c | 51 (target)->u.constant = CONSTANT(src.constant); \ 2065 …memmove(Z_STRVAL(element_name->u.constant), Z_STRVAL(element_name->u.constant)+1, Z_STRLEN(element… in zend_resolve_non_class_name() 2085 …memmove(Z_STRVAL(element_name->u.constant), Z_STRVAL(element_name->u.constant)+len, Z_STRLEN(eleme… in zend_resolve_non_class_name() 2121 …memmove(Z_STRVAL(class_name->u.constant), Z_STRVAL(class_name->u.constant)+1, Z_STRLEN(class_name-… in zend_resolve_class_name() 2141 …memmove(Z_STRVAL(class_name->u.constant), Z_STRVAL(class_name->u.constant)+len, Z_STRLEN(class_nam… in zend_resolve_class_name() 2355 …cpy(&result->u.constant.value.str.val[result->u.constant.value.str.len + sizeof("::")-1], name->u.… in zend_do_build_full_name() 2362 …cpy(&result->u.constant.value.str.val[result->u.constant.value.str.len + sizeof("\\")-1], name->u.… in zend_do_build_full_name() 5579 …Z_STRVAL(offset->u.constant) = erealloc(Z_STRVAL(offset->u.constant), Z_STRLEN(offset->u.constant)… in zend_do_add_static_array_element() 5580 Z_STRVAL(offset->u.constant)[Z_STRLEN(offset->u.constant)+1] = Z_TYPE(offset->u.constant); in zend_do_add_static_array_element() 5581 Z_STRVAL(offset->u.constant)[Z_STRLEN(offset->u.constant)+2] = 0; in zend_do_add_static_array_element() [all …]
|
/PHP-5.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"; 22 Read class constant. 25 Fail to read class constant from instance. 30 Class constant not visible in object var_dump.
|
H A D | constants_error_001.phpt | 2 Error case: duplicate class constant definition 13 Fatal error: Cannot redefine class constant myclass::myConst in %s on line 5
|
/PHP-5.4/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
|
H A D | foreachLoop.007.phpt | 2 Foreach loop tests - error case: reference to constant array. 5 echo "\nReference to constant array\n";
|
/PHP-5.4/ext/standard/tests/math/ |
H A D | constants.phpt | 26 foreach($constants as $constant) { 27 printf("%-10s: %s\n", $constant, constant($constant));
|