Subject | PHP5 niggle |
---|---|
Author | Lester Caine |
Post date | 2004-02-29T12:08:35Z |
OK I spoke too soon on PHP5 situation, but I'm sure this is
just a niggle
ADOdb is having some fun with the following code.
$fnarr =& array_merge( array($conn,$sql) , $iarr);
$ret = call_user_func_array($fn,$fnarr);
The query is
(firebird15): SELECT FIRST 1 SKIP 0 "userId" from
"users_users" where "login"=? [ (0=>'') ]
But I suspect $iarr[0] is simply not set.
This works fine in PHP4, but PHP5 gives
Warning: ibase_query() [function.ibase-query]: Dynamic SQL
Error SQL error code = -804 Incorrect values within SQLDA
structure in
C:\WebSite\tikiwiki_1_8\lib\adodb\drivers\adodb-firebird15.inc.php
on line 325
-804: Dynamic SQL Error SQL error code = -804 Incorrect
values within SQLDA structure
The bodge for the moment is simply
if ( !isset($iarr[0]) ) { $iarr[0] = ''; }
added before the array_merge so that $iarr exists, but the
problem is - is the change in processing in ibase_query or
array_merge?
The subtleties of this elude me at the moment, so can
anybody illuminate the gloom?
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
just a niggle
ADOdb is having some fun with the following code.
$fnarr =& array_merge( array($conn,$sql) , $iarr);
$ret = call_user_func_array($fn,$fnarr);
The query is
(firebird15): SELECT FIRST 1 SKIP 0 "userId" from
"users_users" where "login"=? [ (0=>'') ]
But I suspect $iarr[0] is simply not set.
This works fine in PHP4, but PHP5 gives
Warning: ibase_query() [function.ibase-query]: Dynamic SQL
Error SQL error code = -804 Incorrect values within SQLDA
structure in
C:\WebSite\tikiwiki_1_8\lib\adodb\drivers\adodb-firebird15.inc.php
on line 325
-804: Dynamic SQL Error SQL error code = -804 Incorrect
values within SQLDA structure
The bodge for the moment is simply
if ( !isset($iarr[0]) ) { $iarr[0] = ''; }
added before the array_merge so that $iarr exists, but the
problem is - is the change in processing in ibase_query or
array_merge?
The subtleties of this elude me at the moment, so can
anybody illuminate the gloom?
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services