Bug #78250 [NEW]: make faild fpr pdo_mysql due to undeclared constants
| From: | sim at onitec dot de | Date: | Thu, 04 Jul 2019 12:35:53 +0000 |
| Subject: | Bug #78250 [NEW]: make faild fpr pdo_mysql due to undeclared constants | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-221634@lists.php.net to get a copy of this message | ||
From: sim at onitec dot de
Operating system: âªUbuntu 14.04.6 LTSâ¬
PHP version: 7.2.20
Package: *Compile Issues
Bug Type: Bug
Bug description:make faild fpr pdo_mysql due to undeclared constants
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'
--
Edit bug report at https://bugs.php.net/bug.php?id=78250&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78250&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78250&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78250&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78250&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78250&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78250&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78250&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78250&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78250&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78250&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78250&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78250&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78250&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78250&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78250&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78250&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78250&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78250&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78250&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78250&r=mysqlcfg