Skip to content

updated for php version 7#20

Open
alexfraundorf-com wants to merge 1 commit into
WiringPi:masterfrom
alexfraundorf-com:master
Open

updated for php version 7#20
alexfraundorf-com wants to merge 1 commit into
WiringPi:masterfrom
alexfraundorf-com:master

Conversation

@alexfraundorf-com

Copy link
Copy Markdown

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

@Goldenflamer

Copy link
Copy Markdown

Not working with php 7

@natsimhan

Copy link
Copy Markdown

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

cnyuqiang commented Nov 6, 2018

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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