PHP 4.0 Bug #7969 Updated: ibase_prepare() and ibase_execute() don't work
| From: | kerdos at kerdos dot it | Date: | Tue, 28 Nov 2000 05:43:11 +0000 |
| Subject: | PHP 4.0 Bug #7969 Updated: ibase_prepare() and ibase_execute() don't work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39345@lists.php.net to get a copy of this message | ||
ID: 7969
User Update by: kerdos@kerdos.it
Status: Closed
Bug Type: InterBase related
Description: ibase_prepare() and ibase_execute() don't work
I've just seen that there ware already several bug reports similar to mine...i hope you will
forgive me for the unuseful report
Riccardo Marchetti
Previous Comments:
---------------------------------------------------------------------------
[2000-11-27 08:00:35] jah@php.net
Fixed in current CVS.
---------------------------------------------------------------------------
[2000-11-25 10:45:42] kerdos@kerdos.it
In PHP 4.0.2 and 4.0.3pl1 the example presented in the manual about ibase_prepare() and
ibase_execute() functions doesn't work at all. The script stops executing at ibase_execute()
function call doing nothing on the database.
The problem is not present with PHP 4.0.0. This affects the possibility of using blob functions with
interbase.
PHP 4.0.0 working version was compiled with the following options:
./configure --prefix=/usr --with-apxs --libdir=/usr/lib/php4 --includedir=/usr/include
--datadir=/usr/share/php --with-config-file-path=/etc/httpd --with-interbase=/opt/interbase
The test script was:
<?php
echo "<HTML><body>";
echo "inizio<br>";
$conn=ibase_connect("localhost:/opt/interbase/prova.gdb","SYSDBA","masterkey");
$updates = array(
1 => 'Eric',
5 => 'Filip',
7 => 'Larry'
);
$query = ibase_prepare("UPDATE FOO SET BAR = ? WHERE BAZ = ?");
while (list($baz, $bar) = each($updates)) {
echo "non fatto<br>";
flush();
ibase_execute($query, $bar, $baz);
echo "fatto<br>";
flush();
}
ibase_commit();
echo "fine";
echo "</body></html>";
?>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7969