PHP 4.0 Bug #7398: Stored procedure error return values not passed through

From: Date: Mon, 23 Oct 2000 04:00:31 +0000
Subject: PHP 4.0 Bug #7398: Stored procedure error return values not passed through
Groups: php.dev 
Request: Send a blank email to php-dev+get-35839@lists.php.net to get a copy of this message
From: uk@dataway.ch Operating system: Linux 2.2.17 PHP version: 4.0.3pl1 PHP Bug Type: Sybase-ct (ctlib) related Bug description: Stored procedure error return values not passed through When a stored procedure is called by sybase_query() and returns an error value, sybase_query does not return a false value. I made a stored procedure: create proc p_err as return -999 go Then, from php: echo sybase_query('EXEC p_err') returns: (Resource id #2) Arguably, this could be considered the correct behaviour; but in any case, there should be a way of getting at the return value (perhaps a function sybase_status() which returns the value of the last sybase_query()?). Looking through the source code, the status return is simply discarded. -- Edit Bug report at: http://bugs.php.net/?id=7398&edit=1

« previous php.dev (#35839) next »