Home » Database » MDB » Bug #625
popexpecterror error with Oracle
Details
| Submitted | 2004-01-26 05:16 UTC |
|---|---|
| From | thierry dot bo at netcourrier dot com |
| Assigned | lsmith |
| Status | Closed |
| Package | MDB |
| PHP Version | 4.3.2 |
| OS | Win32XP |
| 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