Re: Re: PHP 4.0 Bug #7751 Updated: Improper array behaviour
| From: | Stanislav Malyshev | Date: | Mon, 20 Nov 2000 16:30:51 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #7751 Updated: Improper array behaviour | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969332973@lists.php.net to get a copy of this message | ||
RK>> > RK>> .
RK>> > RK>> OCIBindByName($stmt,":g_finished",&$fin,32);
RK>> > RK>> OCIBindByName($stmt,":g_failed", &$fail, 32);
RK>> >
RK>> > You should not use call-time reference. It's deprecated.
RK>>
RK>> The manual's example for OCIBindByName at URL:
RK>> http://www.php.net/manual/function.ocibindbyname.php
RK>> shows the following:
RK>> ................................
RK>> $rowid = OCINewDescriptor($conn,OCI_D_ROWID);
RK>>
RK>> OCIBindByName($stmt,":empno",&$empno,32);
I guess the manual is wrong here. Can somebody on DOC team explain if
there is any reason that old syntax is used here?
RK>> OCIBindByName($stmt,":ename",&$ename,32);
RK>> OCIBindByName($stmt,":rid",&$rowid,-1,OCI_B_ROWID);
RK>>
RK>> $update = OCIParse($conn,"update emp set sal = :sal where
RK>> ROWID = :rid");
RK>> OCIBindByName($update,":rid",&$rowid,-1,OCI_B_ROWID);
RK>> OCIBindByName($update,":sal",&$sal,32);
RK>>
RK>> $sal = 10000;
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106