From:             [EMAIL PROTECTED]
Operating system: Windows 2000 and linux
PHP version:      4.3.0RC2
PHP Bug Type:     Unknown/Other Function
Bug description:  ressource id are incorrect

First, I notice that the ressource id given by some function is always
greater or egal to 2 with php-4.3.0RC1 and 4.3.0RC2. 

script:
<?php  
$ds = ldap_connect ( $ldaphost );
echo $ds;
?>

output:
ressource id #2

Second, the ressource id is always increased even if the function failed.
ie

script:
<?php
$fp = fopen ( 'not_existing_file', 'r');
echo '-'.$fp.'-<br>';

$ds = ldap_connect ( $ldaphost );
echo '-'.$ds.'-';
?>

output:
--
-ressource id#3-

Thanks
-- 
Edit bug report at http://bugs.php.net/?id=20711&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20711&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20711&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20711&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20711&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20711&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20711&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20711&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20711&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20711&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20711&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20711&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20711&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20711&r=isapi

Reply via email to