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

updated for php version 7 #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexfraundorf-com
Copy link

I updated the swig files so the php bindings will work with PHP7.

@Goldenflamer
Copy link

Not working with php 7

@natsimhan
Copy link

Thanks ! Perfect works for me (master did not)

pi@raspberrypi:~/workout/wiringPi-PHP $ php -v
PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.30-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies
pi@raspberrypi:~/workout/wiringPi-PHP $ uname -a
Linux raspberrypi 4.14.71+ #1145 Fri Sep 21 15:06:38 BST 2018 armv6l GNU/Linux
pi@raspberrypi:~/workout/wiringPi-PHP $ lsb_release -d
Description:	Raspbian GNU/Linux 9.4 (stretch)

@cnyuqiang
Copy link

cnyuqiang commented Nov 6, 2018

updated the swig to 3.0.12
php: symbol lookup error: /www/server/php/70/lib/php/extensions/no-debug-non-zts-20151012/wiringpi.so: undefined symbol: digitalRead

@alexfraundorf-com
Copy link
Author

updated the swig to 3.0.12
php: symbol lookup error: /www/server/php/70/lib/php/extensions/no-debug-non-zts-20151012/wiringpi.so: undefined symbol: digitalRead

I'm afraid I don't know enough about swig to help debug this. I only learned enough to update the bindings to get it to work for my project using PHP7.
Is there a reason that you need be using the newer version instead of the version I used for this branch?

@alexfraundorf-com
Copy link
Author

Not working with php 7

Can you provide some details?

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

Successfully merging this pull request may close these issues.

4 participants