Lines Matching refs:script

102 	((char*)(ptr) <= (char*)script->size)
104 (((char*)(ptr) >= (char*)script->mem && (char*)(ptr) < (char*)script->mem + script->size) || \
109 (ptr) = (void*)((char*)(ptr) - (char*)script->mem); \
125 if (EXPECTED(script->corrupted)) { \
129 (ptr) = (void*)((char*)(ptr) - (char*)script->mem); \
136 (ptr) = (void*)zend_file_cache_unserialize_interned((zend_string*)(ptr), !script->corrupted); \
141 if (EXPECTED(!script->corrupted)) { \
188 zend_persistent_script *script,
193 zend_persistent_script *script,
197 zend_persistent_script *script,
201 zend_persistent_script *script,
260 zend_persistent_script *script, argument
281 func(&p->val, script, info, buf);
288 zend_persistent_script *script, argument
300 zend_file_cache_serialize_zval(&((zend_ast_zval*)ast)->val, script, info, buf);
305 list->child[i] = zend_file_cache_serialize_ast(list->child[i], script, info, buf);
312 ast->child[i] = zend_file_cache_serialize_ast(ast->child[i], script, info, buf);
320 zend_persistent_script *script, argument
338 zend_file_cache_serialize_hash(ht, script, info, buf, zend_file_cache_serialize_zval);
348 zend_file_cache_serialize_zval(&ref->val, script, info, buf);
359 ast->ast = zend_file_cache_serialize_ast(ast->ast, script, info, buf);
367 zend_persistent_script *script, argument
377 zend_file_cache_serialize_hash(ht, script, info, buf, zend_file_cache_serialize_zval);
407 zend_file_cache_serialize_zval(p, script, info, buf);
518 zend_persistent_script *script, argument
527 zend_file_cache_serialize_op_array(op_array, script, info, buf);
531 zend_persistent_script *script, argument
554 zend_persistent_script *script, argument
569 zend_file_cache_serialize_zval(&c->value, script, info, buf);
579 zend_persistent_script *script, argument
590 …zend_file_cache_serialize_hash(&ce->function_table, script, info, buf, zend_file_cache_serialize_f…
599 zend_file_cache_serialize_zval(p, script, info, buf);
611 zend_file_cache_serialize_zval(p, script, info, buf);
615 …zend_file_cache_serialize_hash(&ce->constants_table, script, info, buf, zend_file_cache_serialize_…
618 …zend_file_cache_serialize_hash(&ce->properties_info, script, info, buf, zend_file_cache_serialize_…
713 static void zend_file_cache_serialize(zend_persistent_script *script, argument
721 info->mem_size = script->size;
723 info->script_offset = (char*)script - (char*)script->mem;
724 info->timestamp = script->timestamp;
726 memcpy(buf, script->mem, script->size);
729 SERIALIZE_STR(new_script->script.filename);
731 …zend_file_cache_serialize_hash(&new_script->script.class_table, script, info, buf, zend_file_cache…
732 …zend_file_cache_serialize_hash(&new_script->script.function_table, script, info, buf, zend_file_ca…
733 zend_file_cache_serialize_op_array(&new_script->script.main_op_array, script, info, buf);
813 int zend_file_cache_script_store(zend_persistent_script *script, int in_shm) argument
823 filename = zend_file_cache_get_bin_file_path(script->script.filename);
852 mem = emalloc(script->size + 64);
855 mem = buf = emalloc(script->size);
862 script->corrupted = 1; /* used to check if script restored to SHM or process memory */
864 zend_file_cache_serialize(script, &info, buf);
866 script->corrupted = 0;
870 info.checksum = zend_adler32(ADLER32_INIT, buf, script->size);
877 vec[1].iov_len = script->size;
881 if (writev(fd, vec, 3) != (ssize_t)(sizeof(info) + script->size + info.str_size)) {
891 if (ZEND_LONG_MAX < (zend_long)(sizeof(info) + script->size + info.str_size) ||
893 write(fd, buf, script->size) != script->size ||
918 zend_persistent_script *script, argument
943 func(&p->val, script, buf);
950 zend_persistent_script *script, argument
958 zend_file_cache_unserialize_zval(&((zend_ast_zval*)ast)->val, script, buf);
963 list->child[i] = zend_file_cache_unserialize_ast(list->child[i], script, buf);
970 ast->child[i] = zend_file_cache_unserialize_ast(ast->child[i], script, buf);
978 zend_persistent_script *script, argument
995 script, buf, zend_file_cache_unserialize_zval, ZVAL_PTR_DTOR);
1004 zend_file_cache_unserialize_zval(&ref->val, script, buf);
1014 ast->ast = zend_file_cache_unserialize_ast(ast->ast, script, buf);
1022 zend_persistent_script *script, argument
1031 script, buf, zend_file_cache_unserialize_zval, ZVAL_PTR_DTOR);
1057 zend_file_cache_unserialize_zval(p, script, buf);
1162 zend_persistent_script *script, argument
1169 zend_file_cache_unserialize_op_array(op_array, script, buf);
1173 zend_persistent_script *script, argument
1194 zend_persistent_script *script, argument
1207 zend_file_cache_unserialize_zval(&c->value, script, buf);
1217 zend_persistent_script *script, argument
1227 script, buf, zend_file_cache_unserialize_func, ZEND_FUNCTION_DTOR);
1235 zend_file_cache_unserialize_zval(p, script, buf);
1246 zend_file_cache_unserialize_zval(p, script, buf);
1251 script, buf, zend_file_cache_unserialize_class_constant, NULL);
1255 script, buf, zend_file_cache_unserialize_prop_info, NULL);
1348 static void zend_file_cache_unserialize(zend_persistent_script *script, argument
1351 script->mem = buf;
1353 UNSERIALIZE_STR(script->script.filename);
1355 zend_file_cache_unserialize_hash(&script->script.class_table,
1356 script, buf, zend_file_cache_unserialize_class, ZEND_CLASS_DTOR);
1357 zend_file_cache_unserialize_hash(&script->script.function_table,
1358 script, buf, zend_file_cache_unserialize_func, ZEND_FUNCTION_DTOR);
1359 zend_file_cache_unserialize_op_array(&script->script.main_op_array, script, buf);
1361 UNSERIALIZE_PTR(script->arena_mem);
1369 zend_persistent_script *script; local
1482 script = (zend_persistent_script *)bucket->data;
1483 if (!script->corrupted) {
1487 return script;
1520 script = (zend_persistent_script*)((char*)buf + info.script_offset);
1521 script->corrupted = !cache_it; /* used to check if script restored to SHM or process memory */
1525 zend_file_cache_unserialize(script, buf);
1540 script->corrupted = 0;
1543 script->dynamic_members.checksum = zend_accel_script_checksum(script);
1544 script->dynamic_members.last_used = ZCG(request_time);
1546 …_accel_hash_update(&ZCSG(hash), ZSTR_VAL(script->script.filename), ZSTR_LEN(script->script.filenam…
1549 …r(ACCEL_LOG_INFO, "File cached script loaded into memory '%s'", ZSTR_VAL(script->script.filename));
1555 return script;