PHP Error: MYSQL_ATTR_INIT_COMMAND
Posted: Fri Oct 19, 2018 7:58 pm
Hi, under the following environment:
Linux tower 4.14.74-1-MANJARO #1 SMP PREEMPT Fri Oct 5 14:16:52 UTC 2018 x86_64 GNU/Linux
PHP 7.2.10 (cli) (built: Sep 11 2018 08:51:16) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend Technologies
mysql Ver 15.1 Distrib 10.1.36-MariaDB, for Linux (x86_64) using readline 5.1
I get the following in the nginx error log:
Linux tower 4.14.74-1-MANJARO #1 SMP PREEMPT Fri Oct 5 14:16:52 UTC 2018 x86_64 GNU/Linux
PHP 7.2.10 (cli) (built: Sep 11 2018 08:51:16) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend Technologies
mysql Ver 15.1 Distrib 10.1.36-MariaDB, for Linux (x86_64) using readline 5.1
I get the following in the nginx error log:
Any ideas welcome. Software perhaps too bleeding edge?2018/10/20 01:44:40 [error] 2787#2787: *5 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /srv/http/nuBuilder/nudatabase.php:13
Stack trace:
#0 /srv/http/nuBuilder/nuchoosesetup.php(35): require_once()
#1 /srv/http/nuBuilder/index.php(6): require_once('/srv/http/nuBui...')
#2 {main}
thrown in /srv/http/nuBuilder/nudatabase.php on line 13" while reading response header from upstream, client: 127.0.0.1, server: nubuild.localdomain, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "nubuild.localdomain"