PHP 4.0 Bug #4946: MySQL link identifying doesn't carry

From: Date: Sat, 10 Jun 2000 03:09:08 +0000
Subject: PHP 4.0 Bug #4946: MySQL link identifying doesn't carry
Groups: php.dev 
Request: Send a blank email to php-dev+get-20869@lists.php.net to get a copy of this message
From: bens@saber.net Operating system: RH 6.2 / Linux 2.2.14 PHP version: 4.0.0 Release PHP Bug Type: MySQL related Bug description: MySQL link identifying doesn't carry IN MYSQL 3.22.32 (from RPM @site): create table stuff ( name char(40), phone char(20)); PHP 4.0 release SCRIPT: <?php mysql_connect(localhost, root, password); mysql_select_db(test); #### pick either one & uncomment ##### #$query="insert into stuff (name, phone) values ('ben', 'clone')"; #$query="delete from stuff where name='Ben'"; ###################################### $result = mysql_query($query); echo mysql_affected_rows($result); ?> IN A BROWSER PRODUCES: Warning: Supplied argument is not a valid MySQL-Link resource in /home/php/public_html/scr/bug3.php on line 7 (????) This worked OK with PHP3, and with 4RC1 ! using php 4.0 configured like this: ./configure --with-pgsql=/usr/lib/pgsql --with-mysql --with-gd --with-apxs=/usr/sbin/apxs -Ben

« previous php.dev (#20869) next »