PHP 4.0 Bug #6257: mysql function returns 'Resource id #'

From: Date: Sun, 20 Aug 2000 08:05:00 +0000
Subject: PHP 4.0 Bug #6257: mysql function returns 'Resource id #'
Groups: php.dev 
Request: Send a blank email to php-dev+get-29878@lists.php.net to get a copy of this message
From: axel@asta.uni-hamb Operating system: Redhat 6.2 Linux 2.2.16 PHP version: 4.0.1pl2 PHP Bug Type: MySQL related Bug description: mysql function returns 'Resource id #' When trying to connect to a db with php4, the result is 'Resource id #1' (and #2 etc. on subsequent calls) instead of an integer. The call was: echo mysql_connect("localhost",$wwwuser,$wwwpass) Changing any fields dos not help at all (I think I tried every possible variant during the last 12 hours). mysql_pconnect produces the same error, btw. *The problem is eliminated by switching back to php3!* I installed the latest mysql from source and from rpm, it did not help. However, I saw similar problems when searching dejanews.com, but related to other mysql calls. Obviously, other people are at least able to connect to a database before the problem arises.

« previous php.dev (#29878) next »