Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php7.1.2 error #24

Open
robbinhan opened this issue Mar 16, 2017 · 2 comments
Open

php7.1.2 error #24

robbinhan opened this issue Mar 16, 2017 · 2 comments

Comments

@robbinhan
Copy link

robbinhan commented Mar 16, 2017

PHP Warning:  PHP Startup: Unable to load dynamic library './hello.so' - dlopen(./hello.so, 9): Symbol not found: _zval_used_for_init
  Referenced from: ./hello.so
  Expected in: flat namespace
 in ./hello.so in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library './hello.so' - dlopen(./hello.so, 9): Symbol not found: _zval_used_for_init
  Referenced from: ./hello.so
  Expected in: flat namespace
 in ./hello.so in Unknown on line 0
PHP Fatal error:  Uncaught Error: Call to undefined function foo_hello() in /Users/robbin/go/src/github.com/kitech/php-go/examples/hello.php:5
Stack trace:
#0 /Users/robbin/go/src/github.com/kitech/php-go/examples/hello.php(58): test_funcs()
#1 {main}
  thrown in /Users/robbin/go/src/github.com/kitech/php-go/examples/hello.php on line 5

Fatal error: Uncaught Error: Call to undefined function foo_hello() in /Users/robbin/go/src/github.com/kitech/php-go/examples/hello.php:5
Stack trace:
#0 /Users/robbin/go/src/github.com/kitech/php-go/examples/hello.php(58): test_funcs()
#1 {main}
  thrown in /Users/robbin/go/src/github.com/kitech/php-go/examples/hello.php on line 5

And php 5.6 is ok

@mweibel
Copy link
Contributor

mweibel commented Jul 14, 2017

make sure to build using the correct php settings. you can point the PHPCFG env variable while building to the correct location. E.g. in my case: PHPCFG=/usr/local/php7/bin/php-config make

Otherwise it will use by default /usr/bin/php-config which in OSX's case is php5 and then you probably ran it with the php 7 version.
Also the make clean doesn't clean up in the correct place if you use OSX.

@kitech
Copy link
Owner

kitech commented Jul 17, 2017

merged master, give a try for free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants