php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29298 MySQLI doesn't support versions < 4.1.3 anymore
Submitted: 2004-07-21 14:05 UTC Modified: 2004-07-22 09:48 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: aditya at sanisoft dot com Assigned: georg (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.0.0 OS: Fedora Core 2
Private report: No CVE-ID: None
 [2004-07-21 14:05 UTC] aditya at sanisoft dot com
Description:
------------
When I tried to compile PHP-5 with MySQL-5.0.0 (alpha) rpm installed from http://dev.mysql.com/downloads/mysql/5.0.html.
Have installed Server, Client programs, Libraries and header files and Dynamic client libraries.

When I use configure ./configure --with-mysqli=/usr/bin/mysql_config compilation stops with the error: configure: error: MySQLI doesn't support versions < 4.1.3 anymore. Please update your libraries.

config.log shows:

/home/aditya/downloads/php-5.0.0/configure:55209: undefined reference to `mysql_stmt_field_count'
collect2: ld returned 1 exit status
configure: failed program was:
#line 55202 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_stmt_field_count();

int main() {
mysql_stmt_field_count()
; return 0; }

I have already seen bug #29089. 
Is this the same bug or different?
Should MySQL devs be bugged about it?

Expected result:
----------------
It should compile...

Actual result:
--------------
It does not compile :(

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-21 15:19 UTC] georg@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

As the errormessage from configure clearly says you need MySQL 4.1.3-beta and not 4.1.2-alpha !
 [2004-07-22 06:53 UTC] aditya at sanisoft dot com
I understand difference between 4.1.2 apha and 4.1.3. But as I clearly stated above, I have installed MySQL 5.0.0 alpha, which is greater than 4.1.3 atleast version wise.

Yes, I did take time out to read the manual and how to report
 [2004-07-22 07:11 UTC] amt@php.net
I know 5.0.0 > 4.1.3, but since 5 is still alpha, it 
sometimes lags behind the 4.1.x series in patches. 
Therefore, things that have been merged into the 4.1.x 
branch may not be in the 5.0.x branch.

For best results, at least today, you should always use 
the 4.1.x branch with MySQLi. In the future, you'll also 
be able to use the 5.0.x branch.
 [2004-07-22 08:46 UTC] derick@php.net
I spoke with Georg and he's changing the message, until then keep it assigned to him.
 [2004-07-22 09:27 UTC] georg@php.net
Message changed in HEAD and 5_0. 
 [2004-07-22 09:48 UTC] aditya at sanisoft dot com
Thanks for all the responses. Still I don't get it... I know that 4.1.3 compiles with mysqli and have done it BUT are you saying that the compile failure with MySQL 5.0.0 is

A) Not a php related bug but a MySQL bug
B) Is a php related bug but MySQL 5 is not supported by PHP devs currently
C) Nobody know for sure....
 [2004-08-04 13:41 UTC] yrob at mail dot crpower dot com
Same problem here, except I downloaded the sources instead of RPM  for MySQL-5.0.0 (alpha) and PHP-5.  I suspect that PHP-5 left in some mysqli functions that were not a part of MySQL-5.0.0 anymore.  I can hardly wait to use the stored procedures from MySQL 5 inside PHP 5.  That would be awsome.
 [2004-08-04 15:12 UTC] yrob at mail dot crpower dot com
I submitted this as a bug to MySQL:
http://bugs.mysql.com/bug.php?id=4895
 [2004-08-05 02:15 UTC] yrob at mail dot crpower dot com
Apparently this is now fixed in MySQL-5.0.1.  I can now run the mysqli libraries, but not mysql.  I get a segmentation fault on mysql_connect even though this is configured with mysql.

./configure --prefix=/usr --datadir=/usr/share/php --mandir=/usr/share/man --bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include --sysconfdir=/etc --with-_lib=lib --with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --enable-inline-optimization --enable-memory-limit --enable-magic-quotes --enable-safe-mode --enable-sigchild --with-mysql=/usr/lib/mysql --with-mysqli=/usr/bin/mysql_config --without-pear --with-openssl --with-apxs2=/usr/local/apache2/bin/apxs i586-suse-linux
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Aug 16 20:01:27 2024 UTC