Edit report at http://bugs.php.net/bug.php?id=53423&edit=1
ID: 53423 Updated by: [email protected] Reported by: jd at cpanel dot net Summary: mysql_statement.c uses C99 syntax Status: Bogus Type: Bug Package: PDO related Operating System: Linux PHP Version: 5.3SVN-2010-11-29 (SVN) Block user comment: N Private report: N New Comment: Oracle, or its processor, whatever the name was back then, ended _extended_ support for MySQL 4.0 in 2008. I doubt the latest version of PHP have to support it ;-) http://www.mysql.com/about/legal/lifecycle/#calendar Previous Comments: ------------------------------------------------------------------------ [2010-11-29 18:48:04] jd at cpanel dot net Thanks for the pointer in the right direction. The problem only happens when compiling against MySQL 4.0. When using MySQL 4.1 and above it compiles correctly. ------------------------------------------------------------------------ [2010-11-29 17:18:40] [email protected] Oh and one more comment: Old versions of gcc are quite liberal with their C iterpretation. Modern versions provide options to check this more strictly (see -W options in the docs) if you want. Other compilers might do even better. ------------------------------------------------------------------------ [2010-11-29 17:14:51] [email protected] The actual issue is not C99 or such but that you are using an outdated version of libmsql. You probabl might be successfull when using mysqlnd (--with-mysql=mysqlnd --with-msqli=mysqlnd --with-pdo-mysql=msqlnd) or updating your libmysql version. The C99 macros are only used when using --enable-debug and GCC is detected. ------------------------------------------------------------------------ [2010-11-29 17:13:40] jd at cpanel dot net Also, to be clear, the compile that failed was linking with libmysqlclient (MySQL 4.0.27), not mysqlnd. As far as I can tell though, this has no bearing on the compile failure. ------------------------------------------------------------------------ [2010-11-29 17:07:25] jd at cpanel dot net Just to be clear, the idea that RedHat 7.3 isn't supported is fine with me. It's an ancient system and supporting it shouldn't factor into anyone else's decision making. I always test with RedHat 7.3 because GCC 2.95 points out these types of bugs that many modern compilers allow without complaint. I'm a little concerned that PHP is going to suddenly start requiring a C99 compatible compiler without testing the compiler for C99 support or putting the compiler into C99 mode though. PHP 5.3.3 did not require a C99 compatible compiler as far as I'm aware. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=53423 -- Edit this bug report at http://bugs.php.net/bug.php?id=53423&edit=1
