ID: 22403 User updated by: cesararnold at yahoo dot com dot br Reported By: cesararnold at yahoo dot com dot br -Status: Feedback +Status: Open Bug Type: Sybase-ct (ctlib) related Operating System: Win2000 PHP Version: 4.3.2-dev New Comment:
Hi, thanks for your reply. sybase did not stop. If I ran the query with null parameter (as mentioned) directly into the database, nothing wrong happens. Also, using differente interfaces to run that query using null, everything goes well. the db returns a error message saying that that the query does not accept null values and returns, something like: Server Message: Number 201, Severity 16 Procedure 'procedure_name', Line 0: Procedure procedure_name expects parameter @ID, which was not supplied. (return status = -6) So, the problem, on my oppinion, is not on the db. Could it be on php or on the native dll, on this case : php_sybase_ct.dll, when receiving the error message from the database ? I hope this can help. Thanks again. Previous Comments: ------------------------------------------------------------------------ [2003-02-25 15:34:09] [EMAIL PROTECTED] What crashes in particular PHP or Sybase? Given the nature of your error I could see how the query would fail, which could trigger a crash in sybase if this particular condition is not handled. However, if that is the case there is nothing PHP could do to prevent such a thing from happening. ------------------------------------------------------------------------ [2003-02-25 02:13:02] [EMAIL PROTECTED] Assuming this is sybase related..plus correct PHP version. ------------------------------------------------------------------------ [2003-02-24 15:38:45] cesararnold at yahoo dot com dot br Hi, we are using PHP 4.3.2 (latest STABLE version) and found a possible bug when trying to execute a sql command (a procedure). the procedure needs 1 (one) argument and does not accept null values when is called. On our case, the variable $varID was infortunatelly = NULL. after ran the code we got two strange behaviors: 1) using pear object $cmd_sql = "exec procedure_name " . $varID; if (DB::isError($query_proc = $db_conn->query($cmd_sql))) { // get the native backend error // and the last query exit($query_proc->getMessage()); } the system crashes and stops the web server! restarting the web server, evething restarts to work. 2) using native functions like @sybase_query( $cmd_sql, $db_conn ); the system crashes but does NOT stop the web server. for both cases php gives the message: "PHP has encountered an Access Violation at 01E436B9" I know that this can be fixed just sending a non-null value to the procedure, but PHP could not crash, on my single oppinion. Is there some fix to this case? Thanks a lot. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22403&edit=1