Permalink
Browse files

Bug #16011 improper handling of array in proto

  • Loading branch information...
1 parent b0787ba commit 359a503087966d9480b869ebe2f3df40afad1c48 @CloCkWeRX CloCkWeRX committed Dec 10, 2011
Showing with 200 additions and 53 deletions.
  1. +2 −1 CodeGen/PECL/Element/Function.php
  2. +198 −52 CodeGen/PECL/Element/Function.php.orig
@@ -1136,7 +1136,8 @@ function cCode($extension)
case "array":
$zvalType = true;
$argString .= "a";
- $var_decl .= " zval * $name = NULL;\n";
+ $var_decl .= " zval * $name;\n";
+ $var_code .= " MAKE_STD_ZVAL($name);\n array_init($name);\n";
$var_decl .= " HashTable * {$name}_hash = NULL;\n";
$postProcess .= " {$name}_hash = HASH_OF($name);\n";
break;
Oops, something went wrong.

0 comments on commit 359a503

Please sign in to comment.