{
zval **function_name;
zend_function *func;
- char *lcname, *func_name_end;
+ char *lcname;
zend_bool retval;
if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1, &function_name)==FAILURE) {
convert_to_string_ex(function_name);
lcname = zend_str_tolower_dup((*function_name)->value.str.val, (*function_name)->value.str.len);
- func_name_end = lcname + (*function_name)->value.str.len;
retval = (zend_hash_find(EG(function_table), lcname, (*function_name)->value.str.len+1, (void **)&func) == SUCCESS);
efree(lcname);
zval **zend_std_get_static_property(zend_class_entry *ce, char *property_name, int property_name_len, zend_bool silent TSRMLS_DC)
{
- HashTable *statics_table;
zval **retval = NULL;
zend_class_entry *tmp_ce = ce;
zend_property_info *property_info;
while (tmp_ce) {
if (zend_hash_quick_find(tmp_ce->static_members, property_info->name, property_info->name_length+1, property_info->h, (void **) &retval)==SUCCESS) {
- statics_table = tmp_ce->static_members;
break;
}
tmp_ce = tmp_ce->parent;
ZEND_API char *zend_str_tolower_copy(char *dest, const char *source, unsigned int length)
{
register unsigned char *str = (unsigned char*)source;
- register unsigned char *result = dest;
+ register unsigned char *result = (unsigned char*)dest;
register unsigned char *end = str + length;
while (str < end) {
efree(*arg);
}
-static php_stream_context *sc_in_process = NULL;
static php_stream *s_in_process = NULL;
static void cli_register_file_handles(TSRMLS_D)
return;
}
- sc_in_process = sc_in;
s_in_process = s_in;
php_stream_to_zval(s_in, zin);
int lineno = 0;
char *exec_direct=NULL, *exec_run=NULL, *exec_begin=NULL, *exec_end=NULL;
const char *param_error=NULL;
- int scan_input = 0;
int hide_argv = 0;
/* end of temporary locals */
#ifdef ZTS
param_error = param_mode_conflict;
break;
}
- scan_input = 1;
behavior=PHP_MODE_PROCESS_STDIN;
exec_end=optarg;
break;