PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » MDB » Bug #625

popexpecterror error with Oracle

Details

Submitted2004-01-26 05:16 UTC
Fromthierry dot bo at netcourrier dot com
Assignedlsmith
StatusClosed
PackageMDB
PHP Version4.3.2
OSWin32XP
Roadmaps(Not assigned)

Comments

[2004-01-26 05:16 UTC] thierry dot bo at netcourrier dot com

Description:
------------
Hi,

Since I found Oracle SID need to be set as 'host' in DSN, connection works fine, but each time I want to insert data, I get this error :

Fatal error: Call to undefined function: popexpecterror() in F:\httpd\php\pear\MDB\Common.php on line 3565

I did not found this function somewhere.

Thierry Bothorel (MDB 1.2)

Reproduce code:
---------------
$area_name_q = unslashes($name);
$id = $mdb->nextId('mrbs_area_id');
if (MDB::isError($id))
{
fatal_error(1, "<p>" . $id->getMessage() . "<br>" . $id->getUserInfo());
}
$sql = "INSERT INTO mrbs_area (id, area_name)
VALUES ($id, " . $mdb->getTextValue ($area_name_q) . ")";
$res = $mdb->query($sql);
if (MDB::isError($res))
{
fatal_error(1, "<p>" . $res->getMessage() . "<br>" . $res->getUserInfo());
}
$area = $mdb->currId('mrbs_area_id');

Expected result:
----------------
new row in table. Works with Mysql, Mssql and pgsql

Actual result:
--------------
Fatal error: Call to undefined function: popexpecterror() in F:\httpd\php\pear\MDB\Common.php on line 3565