Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.3

Request #20277 input stream resource do not convert php_stream
Submitted: 2014-05-21 16:13 UTC
From: ggtakec Assigned:
Status: Open Package: CodeGen_PECL (version 1.1.3)
PHP Version: 5.3.28 OS: ubuntu
Roadmaps: (Not assigned)    
Subscription  


 [2014-05-21 16:13 UTC] ggtakec (Takeshi Nakatani)
Description: ------------ When a function which get stream resource parameter is specified in spec.xml, it seems that peck-gen puts wrong codes. I think Function.php in CodeGen/PECL/Element directory should be following: ------ L:1160 case "stream": $zvalType = true; $argString .= "r"; $var_decl .= " zval * {$name} = NULL;\n"; $var_decl .= " php_stream * res_{$name} = NULL;\n"; $postProcess .= " php_stream_from_zval(res_{$name}, &{$name});\n"; break; ------ Because the parameter in zend_parse_parameters function which is put by peck-gen is specified as "$name". I changed my local Function.php, it worked good for me. Regards,

Comments