Slackware - ARMThis forum is for the discussion of Slackware ARM.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi everyone, I installed the new php 8.1 from Slackware arm extra packages, but it seems buggy to me, it crashes on mysqli_query() when connected to local database.
Pat reintroduced the 8.0 on x86, but only 8.1 is left on arm.
Can anyone help me?
Hi everyone, I installed the new php 8.1 from Slackware arm extra packages, but it seems buggy to me, it crashes on mysqli_query() when connected to local database.
Pat reintroduced the 8.0 on x86, but only 8.1 is left on arm.
Can anyone help me?
Do you have some code to reproduce this? you're using the cgi so hopefully it's reasonably straight forward and doesn't require the set up of an httpd.
Does php 8.0 work when you compiled it? I hadn't got around to adding php 8.0 to /extra yet but I'll put it in the queue.
$mysqli = new mysqli("localhost", "my_user", "my_password", "my_db"); //very important that the host is set to localhost
$result = $mysqli->query("SELECT * FROM my_table");
$mysqli = new mysqli("localhost", "my_user", "my_password", "my_db"); //very important that the host is set to localhost
$result = $mysqli->query("SELECT * FROM my_table");
Doesn't require the set up of an httpd.
Code:
mozes@mojo:~/ac/source/n/php/tests# ./php81-fail.php
PHP Warning: PHP Startup: Unable to load dynamic library 'xmlrpc' (tried: /usr/lib/php/extensions/xmlrpc (/usr/lib/php/extensions/xmlrpc: cannot open shared object file: No such file or directory), /usr/lib/php/extensions/xmlrpc.so (/usr/lib/php/extensions/xmlrpc.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Fatal error: Uncaught mysqli_sql_exception: No such file or directory in /mnt/armedslack/slackwarearm-current/source/n/php/tests/php81-fail.php:3
Stack trace:
#0 /mnt/armedslack/slackwarearm-current/source/n/php/tests/php81-fail.php(3): mysqli->__construct()
#1 {main}
thrown in /mnt/armedslack/slackwarearm-current/source/n/php/tests/php81-fail.php on line 3
Confirmed! It works with the php 7 though, and I imagine it'll also work with 8.0 since it does for you.
I tested on AArch64 as well, and it fails with php 8.0 and 8.1
Code:
mozes@bladswede:~/ac/source/n/php/tests# ./php81-fail.php
PHP Warning: PHP Startup: xmlrpc: Unable to initialize module
Module compiled with module API=20190902
PHP compiled with module API=20210902
These options need to match
in Unknown on line 0
PHP Fatal error: Uncaught mysqli_sql_exception: No such file or directory in /mnt/armedslack/slackwarearm-current/source/n/php/tests/php81-fail.php:3
Stack trace:
#0 /mnt/armedslack/slackwarearm-current/source/n/php/tests/php81-fail.php(3): mysqli->__construct()
#1 {main}
thrown in /mnt/armedslack/slackwarearm-current/source/n/php/tests/php81-fail.php on line 3
php 8.0:
Code:
mozes@bladswede:~/ac/source/n/php/tests# ./php81-fail.php
PHP Warning: PHP Startup: xmlrpc: Unable to initialize module
Module compiled with module API=20190902
PHP compiled with module API=20200930
These options need to match
in Unknown on line 0
PHP Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /mnt/armedslack/slackwarearm-current/source/n/php/tests/php81-fail.php on line 3
PHP Fatal error: Uncaught Error: mysqli object is already closed in /mnt/armedslack/slackwarearm-current/source/n/php/tests/php81-fail.php:4
Stack trace:
#0 /mnt/armedslack/slackwarearm-current/source/n/php/tests/php81-fail.php(4): mysqli->query()
#1 {main}
thrown in /mnt/armedslack/slackwarearm-current/source/n/php/tests/php81-fail.php on line 4
I see in the report that you built it with debugging enabled. The PHP SlackBuild you were directed to previously isn't the official Slackware build script, so I don't know if it has different build options which happen to fix this. The official build script is here. http://ftp.slackware.com/pub/slackwa...t/extra/php80/
PHP 8.0 is building on 32bit ARM now so I'll have a look at that in the next few days.
The PHP SlackBuild you were directed to previously isn't the official Slackware build script, so I don't know if it has different build options which happen to fix this. The official build script is here. http://ftp.slackware.com/pub/slackwa...t/extra/php80/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.