1
0
Fork 0

fix assert for !__DIR__

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@955 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 11 years ago
parent 831bc07e2d
commit 5689b6b09c

@ -1545,13 +1545,13 @@ void xc_fix_op_array_info(const xc_entry_php_t *entry_php, const xc_entry_data_p
efree(Z_STRVAL(Z_OP_CONSTANT(opline->op2)));
}
if (Z_TYPE(Z_OP_CONSTANT(opline->op2)) == IS_STRING) {
assert(!entry_php->dirpath);
assert(entry_php->dirpath);
TRACE("restored op2 constant: %s", entry_php->dirpath);
ZVAL_STRINGL(&Z_OP_CONSTANT(opline->op2), entry_php->dirpath, entry_php->dirpath_len, !shallow_copy);
}
#ifdef IS_UNICODE
else if (Z_TYPE(Z_OP_CONSTANT(opline->op2)) == IS_UNICODE) {
assert(!entry_php->udirpath);
assert(entry_php->udirpath);
ZVAL_UNICODEL(&Z_OP_CONSTANT(opline->op2), entry_php->udirpath, entry_php->udirpath_len, !shallow_copy);
}
#endif

Loading…
Cancel
Save