Re: ocibindbyname() example should be fixed
| From: | Mehdi Achour | Date: | Thu, 16 Oct 2003 20:34:50 +0000 |
| Subject: | Re: ocibindbyname() example should be fixed | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969356621@lists.php.net to get a copy of this message | ||
Hi :)
I did it for you :) didouHi 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.