Comment 28 for bug 240519

Revision history for this message
knb (knb) wrote :

FYI:

PHP4:
sybase_min_client_severity
sybase_min_server_severity

PHP5: (similar)
sybase_min_error_severity
sybase_min_message_severity

Maybe the functions are equivalent to each other, didn't compare them thoroughly.
What I need is that I can prevent that Xdebug croaks on every tiny DB warning with this command
   sybase_min_message_severity(100);

What I did:
I searched for strings in the php5 mssql.so file using this command:
 strings /usr/src/php5-5.2.4/debian/php5-sybase/usr/lib/php5/20060613/mssql.so | grep ^sybase_ | sort -u > sybphp5.txt

and in the php4 sybase_ct.so file with
strings /opt/install/php-4.3.7/ext/sybase_ct/php_sybase_ct.o | grep ^sybase_ | sort -u > sybphp5.txt

These functions seem to be new in php5
sybase_bind
sybase_execute
sybase_fetch_batch
sybase_field_length
sybase_field_name
sybase_field_type
sybase_free_statement
sybase_guid_string
sybase_init
sybase_min_error_severity
sybase_min_message_severity
sybase_next_result
sybase_rows_affected
~

Note that PHP4 Sybase Functions
sybase_set_message_handler
sybase_unbuffered_query

seem indeed to be gone in php5