php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43537 with-mysqli compile error by mysql_get_character_set_info
Submitted: 2007-12-08 14:06 UTC Modified: 2007-12-08 23:18 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: nastasache_iulian at yahoo dot com Assigned:
Status: Not a bug Package: MySQLi related
PHP Version: 5.2.5 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nastasache_iulian at yahoo dot com
New email:
PHP Version: OS:

 

 [2007-12-08 14:06 UTC] nastasache_iulian at yahoo dot com
Description:
------------
Got error when trying to install mysqli extension under PHP 5.2.5 using MySQL 4.1.22.

Ideas? Looks like mysql_get_character_set_info() unavailable before MySQL 5.0.10 ? (php docs said mysqli extension it's working with MySQL > 4.1.3)



Reproduce code:
---------------
./configure
--with-mysql
--with-mysqli

and variations (--with-mysqli=/usr/bin/mysql_config, --enable-embedded-mysqli etc)

Expected result:
----------------
compilation done without the errors

Actual result:
--------------
ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_get_charset':
/usr/src/php-5.2.5/ext/mysqli/mysqli_nonapi.c:372: undefined reference to `mysql_get_character_set_info'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-08 23:18 UTC] tony2001@php.net
mysql_get_character_set_info() is only used when it's available.
The check looks for MySQL version which has to be > 5.0.9.
The error means you have MySQL headers of version 5.0.10+ installed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 19:01:30 2024 UTC