Changeset: 6c59acf6021e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6c59acf6021e
Modified Files:
        clients/php/lib/php_mapi.inc
Branch: Dec2011
Log Message:

mapi_execute: don't return a reference, since we can return FALSE

Bug #2939, PHP spits a notice mapi_execute tries to return FALSE.  Since
there is no performance improvement by actually returning a reference,
just don't do it.


diffs (12 lines):

diff --git a/clients/php/lib/php_mapi.inc b/clients/php/lib/php_mapi.inc
--- a/clients/php/lib/php_mapi.inc
+++ b/clients/php/lib/php_mapi.inc
@@ -64,7 +64,7 @@
        /**
        * Execute an SQL query and return the resulting handle by reference.
        */
-       function &mapi_execute($conn=NULL, $query) {
+       function mapi_execute($conn=NULL, $query) {
                global $connection_pool;
                global $rows;
                /**
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to