Skip to content

Commit c7fc3a6

Browse files
authored
Merge pull request #7 from DasJott/master
Fixes issue #6
2 parents 67f85a5 + 8405e8c commit c7fc3a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/module_class.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static zend_object* module_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
4848
PHP_METHOD(PHPGo__Module, __fun)
4949
{
5050
zval *args = NULL;
51-
int argc;
51+
int argc=0;
5252
zend_string *fname;
5353
module_intern *intern;
5454
php_export *export;

php-go/phpgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func newPHPExport(name string, export interface{}) (*PHPExport, error) {
127127
}
128128
}
129129
for i := 0; i < t.NumOut(); i++ {
130-
if err := pe.addOut(t.In(i)); err != nil {
130+
if err := pe.addOut(t.Out(i)); err != nil {
131131
return nil, err
132132
}
133133
}

0 commit comments

Comments
 (0)