1
0
Fork 0

simplify arg_types using null

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@841 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 2012-03-25 02:58:23 +00:00
parent 2ccf0e5dbf
commit 315bc11aab
2 changed files with 2 additions and 12 deletions

View File

@ -2268,7 +2268,7 @@ class Decompiler
if (isset($op_array['num_args'])) {
$c = $op_array['num_args'];
}
else if ($op_array['arg_types']) {
else if (!empty($op_array['arg_types'])) {
$c = count($op_array['arg_types']);
}
else {
@ -2305,7 +2305,7 @@ class Decompiler
if ($refrest) {
echo '&';
}
else if (isset($op_array['arg_types'][$i])) {
else if (!empty($op_array['arg_types']) && isset($op_array['arg_types'][$i])) {
switch ($op_array['arg_types'][$i]) {
case BYREF_FORCE_REST:
$refrest = true;

View File

@ -803,17 +803,7 @@ DEF_STRUCT_P_FUNC(`zend_op_array', , `dnl {{{
DONE(arg_types)
}
else {
IFDASM(`do {
/* empty array */
zval *zv;
ALLOC_INIT_ZVAL(zv);
array_init(zv);
add_assoc_zval_ex(dst, ZEND_STRS("arg_types"), zv);
} while (0);
DONE(arg_types)
', `
COPYNULL(arg_types)
')
}
#endif
#ifndef ZEND_ENGINE_2_4