|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-07-04 12:43 UTC] daverandom@php.net
-Summary: make faild fpr pdo_mysql due to undeclared constants
+Summary: make failed for pdo_mysql due to undeclared constants
[2021-07-22 11:00 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-07-22 11:00 UTC] cmb@php.net
[2021-08-01 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 16:00:01 2025 UTC |
Description: ------------ While try to compile php 7.2.20, i got some errors while compiling the pdo mysql-driver. It say some constants are not defined. They are defined in an enum, it seams some files are not matching. I tried 7.2.19 before with same error. It makes no difference if a path of libery name is assined to the mysql parameters. /usr/local/src/php-7.2.20/ext/pdo_mysql/mysql_driver.c: In function ‘mysql_handle_quoter’: /usr/local/src/php-7.2.20/ext/pdo_mysql/mysql_driver.c:308:19: error: ‘PDO_PARAM_STR_NATL’ undeclared (first use in this function) if ((paramtype & PDO_PARAM_STR_NATL) == PDO_PARAM_STR_NATL) { ^ /usr/local/src/php-7.2.20/ext/pdo_mysql/mysql_driver.c:308:19: note: each undeclared identifier is reported only once for each function it appears in /usr/local/src/php-7.2.20/ext/pdo_mysql/mysql_driver.c:311:19: error: ‘PDO_PARAM_STR_CHAR’ undeclared (first use in this function) if ((paramtype & PDO_PARAM_STR_CHAR) == PDO_PARAM_STR_CHAR) { ^ (... same constants on some other locations ...) Test script: --------------- ./configure '--enable-mysqlnd' '--with-libdir=lib64' '--cache-file=../config.cache' '--prefix=/usr/local/php-7.2.20' '--with-config-file-path=/usr/local/php-7.2.20/etc' '--disable-debug' '--with-pic' '--disable-rpath' '--with-bz2' '--with-curl' '--with-freetype-dir=/usr/local/php-7.2.20' '--with-png-dir=/usr/local/php-7.2.20' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr/local/php-7.2.20' '--with-openssl' '--with-pspell' '--with-pcre-regex' '--with-zlib' '--enable-exif' '--enable-ftp' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--with-kerberos' '--with-unixODBC=/usr' '--enable-shmop' '--enable-calendar' '--without-sqlite3' '--with-libxml-dir=/usr/local/php-7.2.20' '--enable-pcntl' '--enable-mbstring' '--enable-mbregex' '--with-gd' '--enable-bcmath' '--with-xmlrpc' '--with-mysqli=mysqlnd' '--enable-soap' '--with-xsl' '--enable-xmlreader' '--enable-xmlwriter' '--enable-pdo' '--with-pdo-mysql=mysqlnd' '--with-pdo-pgsql' '--with-pear=/usr/local/php-7.2.20/pear' '--enable-intl' '--without-pdo-sqlite' '--with-config-file-scan-dir=/usr/local/php-7.2.20/php.d' '--enable-zip'