PHP 4.0 Bug #7609 Updated: New connections made

From: Date: Sun, 11 Feb 2001 20:09:51 +0000
Subject: PHP 4.0 Bug #7609 Updated: New connections made
Groups: php.dev 
Request: Send a blank email to php-dev+get-46388@lists.php.net to get a copy of this message
ID: 7609 Updated by: andre Reported By: pietro.pizzo@usa.net Old-Status: Feedback Status: Analyzed Bug Type: Sybase-ct (ctlib) related Assigned To: Comments: I guess this should not happen, anyone with sybase should verify this... Previous Comments: --------------------------------------------------------------------------- [2000-12-06 22:05:41] joey@php.net This looks to me like a simple difference in the way resources are handled. Could one of the core guys verify this? --------------------------------------------------------------------------- [2000-11-03 02:40:10] pietro.pizzo@usa.net I use PHP4.0.3pl1 in my test environment and PHP3.0.16 in the production environment. While making multiple connections to Sybase (Open Client version 11.9.2) with the same arguments, PHP3 returns always the same link identifier but PHP4 not. It seems that PHP4 makes new connections when calling sybase_connect() repeatedly. Here is my PHP script: <?php $conn = sybase_connect("SYBASE", "username", "passwd"); echo $conn."<br>"; $conn = sybase_connect("SYBASE", "username", "passwd"); echo $conn."<br>"; $conn = sybase_connect("SYBASE", "username", "passwd"); echo $conn."<br>"; $conn = sybase_connect("SYBASE", "username", "passwd"); echo $conn."<br>"; $conn = sybase_connect("SYBASE", "username", "passwd"); echo $conn."<br>"; $conn = sybase_connect("SYBASE", "username", "passwd"); echo $conn."<br>"; $conn = sybase_connect("SYBASE", "username", "passwd"); echo $conn."<br>"; $conn = sybase_connect("SYBASE", "username", "passwd"); echo $conn."<br>"; $conn = sybase_connect("SYBASE", "username", "passwd"); echo $conn."<br>"; $conn = sybase_connect("SYBASE", "username", "passwd"); echo $conn."<br>"; ?> The results are the followings: PHP3: 1 1 1 1 1 1 1 1 1 1 PHP4: Resource id #1 Resource id #1 Resource id #1 Resource id #1 Resource id #1 Resource id #2 Resource id #2 Resource id #2 Resource id #2 Resource id #3 The configure line for PHP4 is: ./configure --with-apache=../apache --with-config-file-path=/usr/local/apache/etc --with-sybase-ct=/sybase --with-sybase-db=/sybase --with-oci8 --with-oracle --with-gdbm --with-gd --with-pdflib --with-zlib --with-jpeg-dir=/usr/local --with-tiff-dir=/usr/local --enable-calendar --enable-dbase --enable-yp --enable-versioning --enable-track-vars --enable-ftp --enable-trans-sid --enable-sysvsem --enable-sysvshm The web server is Apache 1.3.12 running on Solaris 2.6. The compiler is GNU gcc 2.95.2. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7609&edit=2

« previous php.dev (#46388) next »