php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57010 compile error: undeclared identifier PDO_ATTR_EMULATE_PREPARES
Submitted: 2006-05-11 09:04 UTC Modified: 2008-05-08 10:59 UTC
From: mike at molinos dot ru Assigned:
Status: Not a bug Package: PDO_MYSQL (PECL)
PHP Version: 5.1.4 OS: FreeBSD 6.1-STABLE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mike at molinos dot ru
New email:
PHP Version: OS:

 

 [2006-05-11 09:04 UTC] mike at molinos dot ru
Description:
------------
Building failed becase of undeclared identifier

Reproduce code:
---------------
diff php_pdo_mysql_int.h php_pdo_mysql_int.h.old
89d88
<       PDO_ATTR_EMULATE_PREPARES,


Expected result:
----------------
Building complete

Actual result:
--------------
[root@main /usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql]# make
/usr/local/bin/bash /usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/libtool --mode=compile gcc -I/usr/local/include/php/ext -I/usr/local/include/mysql -fno-strict-aliasing -pipe   -fno-omit-frame-pointer -fno-gcse -I. -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/include -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/main -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/pdo_mysql.c -o pdo_mysql.lo
mkdir .libs
 gcc -I/usr/local/include/php/ext -I/usr/local/include/mysql -fno-strict-aliasing -pipe -fno-omit-frame-pointer -fno-gcse -I. -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/include -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/main -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/pdo_mysql.c  -fPIC -DPIC -o .libs/pdo_mysql.o
/usr/local/bin/bash /usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/libtool --mode=compile gcc -I/usr/local/include/php/ext -I/usr/local/include/mysql -fno-strict-aliasing -pipe   -fno-omit-frame-pointer -fno-gcse -I. -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/include -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/main -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/mysql_driver.c -o mysql_driver.lo
 gcc -I/usr/local/include/php/ext -I/usr/local/include/mysql -fno-strict-aliasing -pipe -fno-omit-frame-pointer -fno-gcse -I. -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/include -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/main -I/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/mysql_driver.c  -fPIC -DPIC -o .libs/mysql_driver.o
/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/mysql_driver.c: In function `pdo_mysql_set_attribute':
/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/mysql_driver.c:322: error: `PDO_ATTR_EMULATE_PREPARES' undeclared (first use in this function)
/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/mysql_driver.c:322: error: (Each undeclared identifier is reported only once
/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/mysql_driver.c:322: error: for each function it appears in.)
/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/mysql_driver.c: In function `pdo_mysql_handle_factory':
/usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/mysql_driver.c:469: error: `PDO_ATTR_EMULATE_PREPARES' undeclared (first use in this function)
*** Error code 1

Stop in /usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-11 09:18 UTC] mike at molinos dot ru
Changing php version to 5.1.4. Wasn't provided in menu
 [2006-09-16 08:55 UTC] scheidell at secnap dot net
required pecl-PDO minimum version 1.03

do a portupgrade pecl-PDO and all should be well.
 [2008-05-08 10:59 UTC] johannes at schlueters dot de
Upgrading PHP and all PDO stuff fixes the issue
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 10:01:27 2025 UTC