go to bug id or search bugs for
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
Then, from php:
echo sybase_query('EXEC p_err')
(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.
Add a Patch
Add a Pull Request
I have started on a way around this several times, but nothing concrete has formed as of yet.
I'm going to mark as won't fix.
Sybase has been removed in PHP7 because it doesn't have a user base in 5.
If in the future a maintainer for the extension pops up and decides to deploy sybase with PECL, they can always use the bug search feature here to find this report.
Sorry about the wait.