Browse Source

simplify arg_types using null

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@841 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 10 years ago
parent
commit
315bc11aab
  1. 4
      Decompiler.class.php
  2. 10
      processor/processor.m4

4
Decompiler.class.php

@ -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;

10
processor/processor.m4

@ -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

Loading…
Cancel
Save