[Pkg-php-commits] [php/debian-sid] Add aliases to the mssql functions on the sybase extension (Closes: #523073)

Raphael Geissert geissert at debian.org
Thu Aug 13 19:35:24 UTC 2009


Patch from Ubuntu, thanks
---
 debian/patches/series             |    1 +
 debian/patches/sybase-alias.patch |   43 +++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 0 deletions(-)
 create mode 100644 debian/patches/sybase-alias.patch

diff --git a/debian/patches/series b/debian/patches/series
index 747ec33..9aeea92 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -38,3 +38,4 @@ gentoo/006_ext-curl-set_opt-crash.patch
 gentoo/009_ob-memory-leaks.patch
 mssql-null-exception.patch
 exif_read_data-segfault.patch
+sybase-alias.patch
diff --git a/debian/patches/sybase-alias.patch b/debian/patches/sybase-alias.patch
new file mode 100644
index 0000000..f207ae7
--- /dev/null
+++ b/debian/patches/sybase-alias.patch
@@ -0,0 +1,43 @@
+Index: php/ext/mssql/php_mssql.c
+===================================================================
+--- php.orig/ext/mssql/php_mssql.c
++++ php/ext/mssql/php_mssql.c
+@@ -78,6 +78,38 @@ zend_function_entry mssql_functions[] = 
+  	PHP_FE(mssql_execute,				NULL)
+ 	PHP_FE(mssql_free_statement,		NULL)
+  	PHP_FE(mssql_guid_string,			NULL)
++#if !defined(PHP_WIN32) && !defined(HAVE_SYBASE_CT)
++        PHP_FALIAS(sybase_connect, mssql_connect,                           NULL)
++        PHP_FALIAS(sybase_pconnect, mssql_pconnect,                          NULL)
++        PHP_FALIAS(sybase_close, mssql_close,                                     NULL)
++        PHP_FALIAS(sybase_select_db, mssql_select_db,                         NULL)
++        PHP_FALIAS(sybase_query, mssql_query,                                     NULL)
++        PHP_FALIAS(sybase_fetch_batch, mssql_fetch_batch,                       NULL)
++        PHP_FALIAS(sybase_rows_affected, mssql_rows_affected,                     NULL)
++        PHP_FALIAS(sybase_free_result, mssql_free_result,                       NULL)
++        PHP_FALIAS(sybase_get_last_message, mssql_get_last_message,          NULL)
++        PHP_FALIAS(sybase_num_rows, mssql_num_rows,                          NULL)
++        PHP_FALIAS(sybase_num_fields, mssql_num_fields,                        NULL)
++        PHP_FALIAS(sybase_fetch_field, mssql_fetch_field,                       NULL)
++        PHP_FALIAS(sybase_fetch_row, mssql_fetch_row,                         NULL)
++        PHP_FALIAS(sybase_fetch_array, mssql_fetch_array,                       NULL)
++        PHP_FALIAS(sybase_fetch_assoc, mssql_fetch_assoc,                       NULL)
++        PHP_FALIAS(sybase_fetch_object, mssql_fetch_object,                      NULL)
++        PHP_FALIAS(sybase_field_length, mssql_field_length,                      NULL)
++        PHP_FALIAS(sybase_field_name, mssql_field_name,                        NULL)
++        PHP_FALIAS(sybase_field_type, mssql_field_type,                        NULL)
++        PHP_FALIAS(sybase_data_seek, mssql_data_seek,                         NULL)
++        PHP_FALIAS(sybase_field_seek, mssql_field_seek,                        NULL)
++        PHP_FALIAS(sybase_result, mssql_result,                            NULL)
++        PHP_FALIAS(sybase_next_result, mssql_next_result,                       NULL)
++        PHP_FALIAS(sybase_min_error_severity, mssql_min_error_severity,        NULL)
++        PHP_FALIAS(sybase_min_message_severity, mssql_min_message_severity,      NULL)
++        PHP_FALIAS(sybase_init, mssql_init,                                      NULL)
++        PHP_FALIAS(sybase_bind, mssql_bind,                                      third_arg_force_ref)
++        PHP_FALIAS(sybase_execute, mssql_execute,                           NULL)
++        PHP_FALIAS(sybase_free_statement, mssql_free_statement,            NULL)
++        PHP_FALIAS(sybase_guid_string, mssql_guid_string,                       NULL)
++#endif
+ 	{NULL, NULL, NULL}
+ };
+ 
-- 
1.5.6.5





More information about the Pkg-php-commits mailing list