note 74628 added to function.mssql-bind
| From: | matthew dot vines at gmail dot com | Date: | Fri, 20 Apr 2007 20:09:40 +0000 |
| Subject: | note 74628 added to function.mssql-bind | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125712@lists.php.net to get a copy of this message | ||
How can we retrieve the value of output parameters since call-time pass by reference has been
deprecated? for instance, to get the ID back from an Insert stored procedure call I used to bind
the ID parameter like this:
mssql_bind($sp, '@id', &$this->_id, SQLINT4, true, false);
This is now a deprecated action. PHP effectively turns that call into
mssql_bind($sp, '@id', $this->_id, SQLINT4, true, false);
Which means I no longer get the output parameter back. I can't change the mssql_bind function
to declare the parameter to be passed by reference, so how do get the output parameter back? I am
aware of the php.ini setting that will allow call time pass by reference, but I want to conform to
php best practices, and feel that is a poor and lazy solution. Does anyone have any ideas?
----
Server IP: 69.147.83.197
Probable Submitter: 71.153.43.225
----
Manual Page -- http://www.php.net/manual/en/function.mssql-bind.php
Edit -- https://master.php.net/note/edit/74628
Del: integrated -- https://master.php.net/note/delete/74628/integrated
Del: useless -- https://master.php.net/note/delete/74628/useless
Del: bad code -- https://master.php.net/note/delete/74628/bad+code
Del: spam -- https://master.php.net/note/delete/74628/spam
Del: non-english -- https://master.php.net/note/delete/74628/non-english
Del: in docs -- https://master.php.net/note/delete/74628/in+docs
Del: other reasons-- https://master.php.net/note/delete/74628
Reject -- https://master.php.net/note/reject/74628
Search -- https://master.php.net/manage/user-notes.php