|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-01-06 11:03 UTC] thies at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
function func($cur1) { // the variable we get here is a cursor - declared in the calling function // global $a; // if $a will not be declared global - it won't work $a = 1; ora_parse($cur1,"select * from t where a = :a"); echo("$a"); ora_bind($cur1,"a",":a",11,ORA_BIND_IN); ora_exec($cur1); // the parser says the error is in this line(336). The error is :Warning: Can't find variable for parameter in includes/search_functions.inc on line 336 However, if I unremark the above line - global $a; this will work fine.