Git Product home page Git Product logo

ext-spi's People

Contributors

dependabot[bot] avatar flavioheleno avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ajunlonglive

ext-spi's Issues

Issues after installation and tests looking good

Hi,
i have install this extension on a Raspberry Pi and the "make test" looking good.

Is there an issue with this line?

Warning: PHP Startup: Unable to load dynamic library 'spi.so' (tried: /home/pi/ext-spi/modules/spi.so (/home/pi/ext-spi/modules/spi.so: undefined symbol: zend_class_unserialize_deny), /home/pi/ext-spi/modules/spi.so.so (/home/pi/ext-spi/modules/spi.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Now i have insert the extension in the php.ini with "extension=/home/pi/ext-spi/modules/spi.so" but the extension isn't loaded. I have look at "php -m".
Is there a sample of code how to use and insert the class into an php-script.

Sorry for that beginner-questions but i'm stucking for days on that point.

result of my "make test":

Build complete.
Don't forget to run 'make test'.


=====================================================================
PHP         : /usr/bin/php8.0 
PHP_SAPI    : cli
PHP_VERSION : 8.0.15
ZEND_VERSION: 4.0.15
PHP_OS      : Linux - Linux raspberrypi 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l
INI actual  : /home/pi/ext-spi/tmp-php.ini
More .INIs  :   
---------------------------------------------------------------------
PHP         : /usr/bin/phpdbg8.1 
PHP_SAPI    : phpdbg
PHP_VERSION : 8.1.2
ZEND_VERSION: 4.1.2
PHP_OS      : Linux - Linux raspberrypi 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l
INI actual  : /home/pi/ext-spi/tmp-php.ini
More .INIs  : 
Warning: PHP Startup: Unable to load dynamic library 'spi.so' (tried: /home/pi/ext-spi/modules/spi.so (/home/pi/ext-spi/modules/spi.so: undefined symbol: zend_class_unserialize_deny), /home/pi/ext-spi/modules/spi.so.so (/home/pi/ext-spi/modules/spi.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

---------------------------------------------------------------------
CWD         : /home/pi/ext-spi
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
TIME START 2022-01-29 23:23:54
=====================================================================
PASS Check if phpspi is loaded [tests/001.phpt] 
PASS Check if constants are defined [tests/002.phpt] 
PASS Test SPI\Bus::transfer on a MOSI->MISO jumper connected device [tests/transfer.phpt] 
=====================================================================
TIME END 2022-01-29 23:23:54

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   16
---------------------------------------------------------------------

Number of tests :    3                 3
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Tests passed    :    3 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================

thanks a lot for some hints...

Martin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.