RE: [PHP-DOC] ocibindbyname() example should be fixed
| From: | Ford, Mike [LSS] | Date: | Thu, 16 Oct 2003 14:15:31 +0000 |
| Subject: | RE: [PHP-DOC] ocibindbyname() example should be fixed | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969356615@lists.php.net to get a copy of this message | ||
On 16 October 2003 13:48, Antony Dovgal wrote:
> Hi
>
> ocibindbyname() example says, that this syntax should be used: ...
> OCIBindByName($stmt,":empno",&$empno,32);
> etc. etc.
> ...
> But it's time to mention, that to use &$empno here you MUST
> set allow_call_time_pass_reference to true in your php.ini.
> And/or maybe it would be better just to rewrite this example, using
> proper syntax.
Yes, I'd definitely go for the latter -- the & is absolutely not needed
here, since ocibindbyname() is defined as accepting that parameter by
reference.
> Somebody with enough karma - please fix it.
I would if I could, but I don't currently have php-doc karma.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211