Lines Matching refs:script

110 	((char*)(ptr) <= (char*)script->size)
112 (((char*)(ptr) >= (char*)script->mem && (char*)(ptr) < (char*)script->mem + script->size) || \
117 (ptr) = (void*)((char*)(ptr) - (char*)script->mem); \
133 if (EXPECTED(script->corrupted)) { \
137 (ptr) = (void*)((char*)(ptr) - (char*)script->mem); \
144 (ptr) = (void*)zend_file_cache_unserialize_interned((zend_string*)(ptr), !script->corrupted); \
149 if (EXPECTED(!script->corrupted)) { \
196 zend_persistent_script *script,
201 zend_persistent_script *script,
205 zend_persistent_script *script,
209 zend_persistent_script *script,
268 zend_persistent_script *script, argument
289 func(&p->val, script, info, buf);
296 zend_persistent_script *script, argument
304 zend_file_cache_serialize_zval(&((zend_ast_zval*)ast)->val, script, info, buf);
312 zend_file_cache_serialize_ast(tmp, script, info, buf);
322 zend_file_cache_serialize_ast(tmp, script, info, buf);
329 zend_persistent_script *script, argument
346 zend_file_cache_serialize_hash(ht, script, info, buf, zend_file_cache_serialize_zval);
356 zend_file_cache_serialize_zval(&ref->val, script, info, buf);
366 zend_file_cache_serialize_ast(GC_AST(ast), script, info, buf);
373 zend_persistent_script *script, argument
383 zend_file_cache_serialize_hash(ht, script, info, buf, zend_file_cache_serialize_zval);
413 zend_file_cache_serialize_zval(p, script, info, buf);
541 zend_persistent_script *script, argument
550 zend_file_cache_serialize_op_array(op_array, script, info, buf);
554 zend_persistent_script *script, argument
577 zend_persistent_script *script, argument
592 zend_file_cache_serialize_zval(&c->value, script, info, buf);
602 zend_persistent_script *script, argument
613 …zend_file_cache_serialize_hash(&ce->function_table, script, info, buf, zend_file_cache_serialize_f…
622 zend_file_cache_serialize_zval(p, script, info, buf);
638 zend_file_cache_serialize_zval(p, script, info, buf);
642 …zend_file_cache_serialize_hash(&ce->constants_table, script, info, buf, zend_file_cache_serialize_…
645 …zend_file_cache_serialize_hash(&ce->properties_info, script, info, buf, zend_file_cache_serialize_…
716 static void zend_file_cache_serialize(zend_persistent_script *script, argument
724 info->mem_size = script->size;
726 info->script_offset = (char*)script - (char*)script->mem;
727 info->timestamp = script->timestamp;
729 memcpy(buf, script->mem, script->size);
732 SERIALIZE_STR(new_script->script.filename);
734 …zend_file_cache_serialize_hash(&new_script->script.class_table, script, info, buf, zend_file_cache…
735 …zend_file_cache_serialize_hash(&new_script->script.function_table, script, info, buf, zend_file_ca…
736 zend_file_cache_serialize_op_array(&new_script->script.main_op_array, script, info, buf);
816 int zend_file_cache_script_store(zend_persistent_script *script, int in_shm) argument
826 filename = zend_file_cache_get_bin_file_path(script->script.filename);
851 mem = emalloc(script->size + 64);
854 mem = buf = emalloc(script->size);
861 script->corrupted = 1; /* used to check if script restored to SHM or process memory */
863 zend_file_cache_serialize(script, &info, buf);
865 script->corrupted = 0;
869 info.checksum = zend_adler32(ADLER32_INIT, buf, script->size);
876 vec[1].iov_len = script->size;
880 if (writev(fd, vec, 3) != (ssize_t)(sizeof(info) + script->size + info.str_size)) {
890 if (ZEND_LONG_MAX < (zend_long)(sizeof(info) + script->size + info.str_size) ||
892 write(fd, buf, script->size) != script->size ||
917 zend_persistent_script *script, argument
942 func(&p->val, script, buf);
949 zend_persistent_script *script, argument
955 zend_file_cache_unserialize_zval(&((zend_ast_zval*)ast)->val, script, buf);
961 zend_file_cache_unserialize_ast(list->child[i], script, buf);
969 zend_file_cache_unserialize_ast(ast->child[i], script, buf);
976 zend_persistent_script *script, argument
992 script, buf, zend_file_cache_unserialize_zval, ZVAL_PTR_DTOR);
1001 zend_file_cache_unserialize_zval(&ref->val, script, buf);
1007 zend_file_cache_unserialize_ast(Z_ASTVAL_P(zv), script, buf);
1014 zend_persistent_script *script, argument
1023 script, buf, zend_file_cache_unserialize_zval, ZVAL_PTR_DTOR);
1049 zend_file_cache_unserialize_zval(p, script, buf);
1166 zend_persistent_script *script, argument
1173 zend_file_cache_unserialize_op_array(op_array, script, buf);
1177 zend_persistent_script *script, argument
1198 zend_persistent_script *script, argument
1211 zend_file_cache_unserialize_zval(&c->value, script, buf);
1221 zend_persistent_script *script, argument
1232 script, buf, zend_file_cache_unserialize_func, ZEND_FUNCTION_DTOR);
1240 zend_file_cache_unserialize_zval(p, script, buf);
1254 zend_file_cache_unserialize_zval(p, script, buf);
1259 script, buf, zend_file_cache_unserialize_class_constant, NULL);
1263 script, buf, zend_file_cache_unserialize_prop_info, NULL);
1334 static void zend_file_cache_unserialize(zend_persistent_script *script, argument
1337 script->mem = buf;
1339 UNSERIALIZE_STR(script->script.filename);
1341 zend_file_cache_unserialize_hash(&script->script.class_table,
1342 script, buf, zend_file_cache_unserialize_class, ZEND_CLASS_DTOR);
1343 zend_file_cache_unserialize_hash(&script->script.function_table,
1344 script, buf, zend_file_cache_unserialize_func, ZEND_FUNCTION_DTOR);
1345 zend_file_cache_unserialize_op_array(&script->script.main_op_array, script, buf);
1347 UNSERIALIZE_PTR(script->arena_mem);
1355 zend_persistent_script *script; local
1464 script = (zend_persistent_script *)bucket->data;
1465 if (!script->corrupted) {
1469 return script;
1502 script = (zend_persistent_script*)((char*)buf + info.script_offset);
1503 script->corrupted = !cache_it; /* used to check if script restored to SHM or process memory */
1507 zend_file_cache_unserialize(script, buf);
1522 script->corrupted = 0;
1525 script->dynamic_members.checksum = zend_accel_script_checksum(script);
1526 script->dynamic_members.last_used = ZCG(request_time);
1528 …_accel_hash_update(&ZCSG(hash), ZSTR_VAL(script->script.filename), ZSTR_LEN(script->script.filenam…
1531 …r(ACCEL_LOG_INFO, "File cached script loaded into memory '%s'", ZSTR_VAL(script->script.filename));
1537 return script;