[PHP-DEV] Bug #10408 Updated: Bad Sybase-CTlib closing

2001-05-20 Thread jmoore

ID: 10408
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Sybase-ct (ctlib) related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

No feedback.

- James

Previous Comments:
---

[2001-04-19 16:03:13] [EMAIL PROTECTED]
Cannot duplicate this locally, can you provide more info?

---

[2001-04-19 15:18:52] [EMAIL PROTECTED]
if you run this script :


';// I want to see this one !!!
exit();  // global exit of php
}

//MAIN PGM:
// set to the user defined error handler
set_error_handler('myErrorHandler');
$connect_id=sybase_connect('MyServer','MyLogin','MyPassword');
if (!$connect_id)
echo "An error in sybase_query !!"; // I don't want to see this message
else
{   $res=sybase_query('select * from toto',$connect_id);
if (!$res)
echo "An error in sybase_query !!"; // I don't want to see this 
message too
else
echo 'No error';
}
?>


and that the table toto doesn't exist you trigger the myErrorHandler and the script 
terminate as intended. The problem is that Sybase doesn't seem aware of this and the 
process will live forever even if it doesn't allow Sybase query any more. So if you 
run this script a few times all the processes will be sleeping and you will no more be 
able to make a Sybase query. I think there is a problem in the way you handle the 
Sybase connexion in a error handler with an exit() call.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10408&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10408 Updated: Bad Sybase-CTlib closing

2001-04-19 Thread joey

ID: 10408
Updated by: joey
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Sybase-ct (ctlib) related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Cannot duplicate this locally, can you provide more info?

Previous Comments:
---

[2001-04-19 15:18:52] [EMAIL PROTECTED]
if you run this script :


';// I want to see this one !!!
exit();  // global exit of php
}

//MAIN PGM:
// set to the user defined error handler
set_error_handler('myErrorHandler');
$connect_id=sybase_connect('MyServer','MyLogin','MyPassword');
if (!$connect_id)
echo "An error in sybase_query !!"; // I don't want to see this message
else
{   $res=sybase_query('select * from toto',$connect_id);
if (!$res)
echo "An error in sybase_query !!"; // I don't want to see this 
message too
else
echo 'No error';
}
?>


and that the table toto doesn't exist you trigger the myErrorHandler and the script 
terminate as intended. The problem is that Sybase doesn't seem aware of this and the 
process will live forever even if it doesn't allow Sybase query any more. So if you 
run this script a few times all the processes will be sleeping and you will no more be 
able to make a Sybase query. I think there is a problem in the way you handle the 
Sybase connexion in a error handler with an exit() call.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10408&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]