int state = 0;
int crlf_state = -1;
char *token = NULL;
- size_t token_pos;
+ size_t token_pos = 0;
zend_string *fld_name, *fld_val;
ps = str;
}
if (state == 0 || state == 1) {
- if(token) {
+ if(token && token_pos > 0) {
fld_name = zend_string_init(token, token_pos, 0);
}
state = 2;
case 3:
if (crlf_state == -1) {
- if(token) {
+ if(token && token_pos > 0) {
fld_val = zend_string_init(token, token_pos, 0);
}
state = 3;
}
if (state == 3) {
- if(token) {
+ if(token && token_pos > 0) {
fld_val = zend_string_init(token, token_pos, 0);
}
if (fld_name != NULL && fld_val != NULL) {
if (zend_get_property_info(ce, hash_key->key, 1) == NULL) {
zend_property_info property_info;
+ property_info.doc_comment = NULL;
property_info.flags = ZEND_ACC_IMPLICIT_PUBLIC;
property_info.name = hash_key->key;
property_info.ce = ce;
zuv.html_errors = 1;
zuv.import_use_extension = ".php";
+ zuv.import_use_extension_length = (uint)strlen(zuv.import_use_extension);
php_startup_auto_globals();
zend_set_utility_values(&zuv);
php_startup_sapi_content_types();