Re: help with EVAL direct

From: Date: Tue, 04 Nov 2003 13:24:10 +0000
Subject: Re: help with EVAL direct
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168466@lists.php.net to get a copy of this message
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...

« previous php.general (#168466) next »