Home
last modified time | relevance | path

Searched refs:constant (Results 1 – 25 of 184) sorted by relevance

12345678

/PHP-5.4/Zend/tests/
H A D018.phpt2 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 Dbug51791.phpt2 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 Dconstants_001.phpt12 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 Dbug43344_1.phpt2 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 Dns_076.phpt14 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 Dns_049.phpt2 049: __NAMESPACE__ constant and runtime names (php name)
7 var_dump(constant(__NAMESPACE__ . "\\FOO"));
H A Dns_048.phpt2 048: __NAMESPACE__ constant and runtime names (ns name)
9 var_dump(constant(__NAMESPACE__ . "\\FOO"));
H A Dbug43344_10.phpt2 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 Dbug43344_6.phpt2 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 Dbug43344_11.phpt2 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 Derrmsg_041.phpt2 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 Dbug43344_12.phpt2 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 Dbug43344_7.phpt2 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 Dconstants_003.phpt12 var_dump(foo, namespace\foo, \foo\foo, \foo, constant('foo'), constant('foo\foo'));
H A Dbug43344_13.phpt2 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 Dbug43344_8.phpt2 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 Dbug43344_9.phpt2 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 DReflectionClass_hasConstant_001.phpt17 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 Dzend_language_parser.y762constant, 0); if ($2.op_type == IS_CONST) { add_function(&$2.u.constant, &$1.u.constant, &$2.u.con…
763constant, 0); if ($2.op_type == IS_CONST) { sub_function(&$2.u.constant, &$1.u.constant, &$2.u.con…
851constant), Z_STRLEN($2.u.constant)+1); memcpy(&(tmp[1]), Z_STRVAL($2.u.constant), Z_STRLEN($2.u.co…
857constant), 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…
925constant), 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, &…
943constant), 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 Dzend_compile.c51 (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 Dconstants_basic_002.phpt2 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 Dconstants_error_001.phpt2 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 Dbug44827.phpt2 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 DforeachLoop.007.phpt2 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 Dconstants.phpt26 foreach($constants as $constant) {
27 printf("%-10s: %s\n", $constant, constant($constant));

Completed in 66 milliseconds

12345678