Searched refs:constant (Results 1 - 21 of 21) sorted by relevance

/PHP_5_4/ext/bcmath/libbcmath/
H A Dconfigure1266 of an if-expression whose if-part is not a constant expression */
/PHP_5_4/ext/phar/phar/
H A Dpharcommand.inc414 * @return Hash constant to be used.
/PHP_5_4/ext/mysqli/tests/
H A Dreflection_tools.inc55 foreach ($constant as $name => $value)
/PHP_5_4/ext/sqlite3/libsqlite/
H A Dsqlite3.c254 ** SQLite may choose a larger value. This constant is the maximum value
561 ** or constant definition does not appear in this file, then it is
642 ** be held constant and Z will be incremented or else Y will be incremented
679 ** ^The sqlite3_version[] string constant contains the text of [SQLITE_VERSION]
681 ** to the sqlite3_version[] string constant. The sqlite3_libversion()
686 ** a pointer to a string constant whose value is the same as the
1524 ** The SQLITE_ACCESS_READWRITE constant is currently used only by the
1528 ** checks whether the file is readable. The SQLITE_ACCESS_READ constant is
3898 ** Note that the SQLITE_TEXT constant was also used in SQLite version 2
4263 ** These constant defin
[all...]
/PHP_5_4/ext/reflection/
H A Dphp_reflection.c1018 static int _extension_const_string(zend_constant *constant TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key) /* {{{ */
1025 if (constant->module_number == module->module_number) {
1026 _const_string(str, constant->name, &constant->value, indent TSRMLS_CC);
2605 Returns whether the default value of this parameter is constant */
2630 Returns the default value's constant name if default value is constant or null */
3978 Returns whether a constant exists or not */
4019 Returns the class' constant specified by its name */
5265 static int _addconstant(zend_constant *constant TSRMLS_D
[all...]
/PHP_5_4/ext/standard/
H A Dbasic_functions.h46 PHP_FUNCTION(constant); variable
H A Dbasic_functions.c2684 PHP_FE(constant, arginfo_constant)
3798 /* {{{ proto mixed constant(string const_name)
3799 Given the name of a constant this function will return the constant's associated value */
3800 PHP_FUNCTION(constant)
3810 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't find constant %s", const_name);
/PHP_5_4/Zend/
H A Dzend_API.c3557 zval *constant; local
3560 ALLOC_PERMANENT_ZVAL(constant);
3562 ALLOC_ZVAL(constant);
3564 ZVAL_NULL(constant);
3565 INIT_PZVAL(constant);
3566 return zend_declare_class_constant(ce, name, name_length, constant TSRMLS_CC);
3572 zval *constant; local
3575 ALLOC_PERMANENT_ZVAL(constant);
3577 ALLOC_ZVAL(constant);
3579 ZVAL_LONG(constant, valu
3587 zval *constant; local
3602 zval *constant; local
3617 zval *constant; local
[all...]
H A Dzend_constants.c383 zend_error(E_ERROR, "Undefined class constant '%s::%s'", class_name, constant_name);
393 /* non-class constant */
395 /* compound constant name */
403 /* Check for namespace constant */
405 /* Concatenate lowercase namespace name and constant name */
455 if (zend_hash_quick_find(EG(zend_constants), Z_STRVAL(key->constant), Z_STRLEN(key->constant) + 1, key->hash_value, (void **) &c) == FAILURE) {
457 if (zend_hash_quick_find(EG(zend_constants), Z_STRVAL(key->constant), Z_STRLEN(key->constant) + 1, key->hash_value, (void **) &c) == FAILURE ||
461 if (zend_hash_quick_find(EG(zend_constants), Z_STRVAL(key->constant), Z_STRLE
[all...]
H A Dzend_language_parser.y528 | T_ARRAY { $$.op_type = IS_CONST; Z_TYPE($$.u.constant)=IS_ARRAY; }
529 | T_CALLABLE { $$.op_type = IS_CONST; Z_TYPE($$.u.constant)=IS_CALLABLE; }
536 | /* empty */ { Z_LVAL($$.u.constant) = 0; }
541 expr_without_variable { Z_LVAL($$.u.constant) = 1; zend_do_pass_param(&$1, ZEND_SEND_VAL, Z_LVAL($$.u.constant) TSRMLS_CC); }
542 | variable { Z_LVAL($$.u.constant) = 1; zend_do_pass_param(&$1, ZEND_SEND_VAR, Z_LVAL($$.u.constant) TSRMLS_CC); }
543 | '&' w_variable { Z_LVAL($$.u.constant) = 1; zend_do_pass_param(&$2, ZEND_SEND_REF, Z_LVAL($$.u.constant) TSRMLS_CC); }
544 | non_empty_function_call_parameter_list ',' expr_without_variable { Z_LVAL($$.u.constant)
[all...]
H A Dzend_language_scanner.c564 retval_znode.u.constant.type = IS_LONG;
565 retval_znode.u.constant.value.lval = 1;
566 Z_UNSET_ISREF(retval_znode.u.constant);
567 Z_SET_REFCOUNT(retval_znode.u.constant, 1);
4513 /* We create a special __CLASS__ constant that is going to be resolved
H A Dzend_language_scanner.l562 retval_znode.u.constant.type = IS_LONG;
563 retval_znode.u.constant.value.lval = 1;
564 Z_UNSET_ISREF(retval_znode.u.constant);
565 Z_SET_REFCOUNT(retval_znode.u.constant, 1);
1587 /* We create a special __CLASS__ constant that is going to be resolved
H A Dzend_opcode.c378 zval_dtor(&literal->constant);
514 opline->op1.zv = &op_array->literals[opline->op1.constant].constant;
517 opline->op2.zv = &op_array->literals[opline->op2.constant].constant;
H A Dzend_object_handlers.c1012 lc_method_name = Z_STRVAL(key->constant);
1155 lc_function_name = Z_STRVAL(key->constant);
H A Dzend_builtin_functions.c647 Define a new constant */
666 /* class constant, check if there is name and make sure class is valid & exists */
725 Check whether a constant exists */
1917 static int add_constant_info(zend_constant *constant, void *arg TSRMLS_DC) argument
1922 if (!constant->name) {
1928 *const_val = constant->value;
1931 add_assoc_zval_ex(name_array, constant->name, constant->name_len, const_val);
H A Dzend_vm_def.h2482 } else if (zend_hash_quick_find(EG(function_table), Z_STRVAL(func_name->constant), Z_STRLEN(func_name->constant)+1, func_name->hash_value, (void **) &EX(fbc))==FAILURE) {
2484 if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL(func_name->constant), Z_STRLEN(func_name->constant)+1, func_name->hash_value, (void **) &EX(fbc))==FAILURE)) {
3478 /* non-qualified constant - allow text substitution */
3479 zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", actual, actual);
3484 zend_error_noreturn(E_ERROR, "Undefined constant '%s'", Z_STRVAL_P(opline->op2.zv));
3495 /* class constant */
3545 zend_error_noreturn(E_ERROR, "Undefined class constant '%s'", Z_STRVAL_P(opline->op2.zv));
H A Dzend_vm_execute.h1338 } else if (zend_hash_quick_find(EG(function_table), Z_STRVAL(func_name->constant), Z_STRLEN(func_name->constant)+1, func_name->hash_value, (void **) &EX(fbc))==FAILURE) {
1340 if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL(func_name->constant), Z_STRLEN(func_name->constant)+1, func_name->hash_value, (void **) &EX(fbc))==FAILURE)) {
3572 /* non-qualified constant - allow text substitution */
3573 zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", actual, actual);
3578 zend_error_noreturn(E_ERROR, "Undefined constant '%s'", Z_STRVAL_P(opline->op2.zv));
3589 /* class constant */
3639 zend_error_noreturn(E_ERROR, "Undefined class constant '%s'", Z_STRVAL_P(opline->op2.zv));
13684 /* non-qualified constant
[all...]
H A Dzend_compile.c34 (op_array)->literals[op].constant
42 target.constant = zend_add_literal(CG(active_op_array), &(src)->u.constant TSRMLS_CC); \
51 (target)->u.constant = CONSTANT(src.constant); \
384 &op_array->literals[op_array->last_literal - 1].constant == zv &&
411 &op_array->literals[op_array->last_literal - 1].constant == zv &&
444 &op_array->literals[op_array->last_literal - 1].constant == zv &&
478 &op_array->literals[op_array->last_literal - 1].constant == zv &&
502 /* lowercased namespace name & original constant nam
[all...]
H A Dzend_compile.h35 #define FREE_PNODE(znode) zval_dtor(&znode->u.constant);
66 zval constant; member in struct:_zend_literal
75 zend_uint constant; member in union:_znode_op
90 zval constant; /* replaced by literal/zv */ member in union:_znode::__anon1
849 /* disable constant substitution at compile-time */
H A Dzend_execute_API.c500 zend_error(E_ERROR, "Cannot declare self-referencing constant '%s'", Z_STRVAL_P(p));
517 zend_error(E_ERROR, "Undefined class constant '%s'", Z_STRVAL_P(p));
553 zend_error(E_ERROR, "Undefined constant '%s'", save);
565 zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", actual, actual);
603 /* First go over the array and see if there are any constant indices */
619 zend_error(E_ERROR, "Undefined class constant '%s'", str_index);
638 zend_error(E_ERROR, "Undefined constant '%s'", save);
640 zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", str_index, str_index);
1047 lc_name = Z_STRVAL(key->constant);
1048 lc_length = Z_STRLEN(key->constant)
[all...]
/PHP_5_4/
H A Drun-tests.php601 if(constant('PHP_BINARY')) {

Completed in 184 milliseconds