From:             yrob at mail dot crpower dot com
Operating system: Linux 2.6.5-7.104-default
PHP version:      5.0.1
PHP Bug Type:     MySQL related
Bug description:  mysqli functions do not work in 5.0.1

Description:
------------
I'm using MySQL 5.0.1.

The main problem here is that now the mysqli functions don't work. 
Configuration, make, and make install run just fine. When I try to load a
web page, nothing displays (displayed just fine using PHP 5.0.0).  When I
use the CLI on PHP 5.0.1 to test the web page, it seems to run just fine.

Had to go back to PHP 5.0.0 so my mysqli functions will work.

The other problem is that I wasn't able to get mysql functions to work at
all.  It wouldn't even pass configuration "--with-mysql=/usr/lib/mysql". 
Configuration said it couldn't find libmysql, though I pointed it directly
to the MySQL 5.0.1 library directory.

Reproduce code:
---------------
$db = new mysqli( 'dbhost', 'username', 'pw');
if (!$db) { printf("Connect failed: %s\n", mysqli_connect_error());
exit(); }

$db->select_db("dbname");
$sql = "SELECT * FROM test";
$select = $db->query( $sql );
$result = $select->fetch_array(MYSQLI_BOTH);
$something = $result['something'];


Expected result:
----------------
Loaded web page.

Actual result:
--------------
Web page does not load, but the CLI runs just fine.

-- 
Edit bug report at http://bugs.php.net/?id=29667&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29667&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29667&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29667&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29667&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29667&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29667&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29667&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29667&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29667&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29667&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29667&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29667&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29667&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29667&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29667&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29667&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29667&r=float

Reply via email to