Re: help with EVAL direct
| From: | j dot sobotka at psgraph dot cz | Date: | Wed, 05 Nov 2003 08:23:35 +0000 |
| Subject: | Re: help with EVAL direct | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168535@lists.php.net to get a copy of this message | ||
"Cpt John W. Holmes" wrote:
> From: <j.sobotka@psgraph.cz>
>
> > OS RedHat 9 and RedHat 7.2
> > Apache 1.3.27 and Apache 2
> >
> > I have problem with direct eval, in version PHP4.2.2 is all OK
> > in version PHP 4.3.3 -> direct eval bad
> >
> > here cut code
> >
> > $s = '$ret = ibase_execute($this->query, $arg_list[0], $arg_list[1],
> > $arg_list[2], $arg_list[3], $arg_list[4], $arg_list[5], $arg_list[6]);';
> >
> > eval($s);
> >
> > end cut code
> >
> > in PHP 4.3.3 -> log message
> > [Tue Nov 4 08:37:07 2003] [error] PHP Warning: ibase_execute():
> > attempted update during read-only transaction in
> > /www/test.php(204) : eval()'d code on line 1
> >
> > not write to DB
>
> Wild guess here, but it looks like you're trying to do an UPDATE query where
> you're only allowed to do a SELECT query (read-only). The error is not
> because of eval(), it's because of an incorrect usage of ibase_execute().
>
> ---John Holmes...
Thanks you,
I'm not understant, in version PHP 4.2.2 ext. modul interbase is OK. Function
ibase_execute, write with parameter work OK.
I'm change in ext. modul interbase function ibase_execute, now is working OK.
Jiri Sobotka