Skip to content

Issues after installation and tests looking good #1

@ma-wagner

Description

@ma-wagner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions