#36607 [NEW]: default_prefetch problem w/ dbLinks
From: jreed at myers dot com
Operating system: Linux - 386
PHP version: 5.1.2
PHP Bug Type: OCI8 related
Bug description: default_prefetch problem w/ dbLinks
Description:
------------
When oci8.default_prefetch is set to anything but zero, executing a SQL
statement that uses a dbLink and only returns a single row causes Apache
to seg fault. If oci8.default_prefetch is set to zero then it works fine.
This problem only seems to occur if you do a SELECT *. If you identify
the exact columns to select then it works fine. Also, the same statement
works fine, even with SELECT *, if you connect to the database directly.
It only fails if accessing through a dbLink.
Reproduce code:
---------------
$sql = "
select
*
from
my_schema.my_table@my_db_link
where
table_id = $some_id
";
$stmt = ociparse($conn, $sql);
ociexecute($stmt, OCI_DEFAULT);
ocifetchinto($stmt, $row, OCI_ASSOC);
ocifreestatement($stmt);
Expected result:
----------------
$row is a populated associative array with all the columns from the table
row requested.
Actual result:
--------------
Apache seg faults immediately after the ociexecute() call.
--
Edit bug report at http://bugs.php.net/?id=36607&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36607&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36607&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36607&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36607&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36607&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36607&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36607&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36607&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36607&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36607&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36607&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36607&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36607&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36607&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36607&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36607&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36607&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36607&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36607&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36607&r=mysqlcfg
Thread (16 messages)
- jreed at myers dot com
- tony2001@php.net#36607 [Opn->Fbk]: default_prefetch problem w/ dbLinks
- jreed at myers dot com#36607 [Fbk->Opn]: default_prefetch problem w/ dbLinks
- bjori@php.net#36607 [Opn->Fbk]: default_prefetch problem w/ dbLinks
- jreed at myers dot com#36607 [Fbk->Opn]: default_prefetch problem w/ dbLinks
- tony2001@php.net#36607 [Opn->Fbk]: default_prefetch problem w/ dbLinks
- jreed at myers dot com#36607 [Fbk->Opn]: default_prefetch problem w/ dbLinks
- jreed at myers dot com#36607 [Opn]: default_prefetch problem w/ dbLinks
- cjbj at hotmail dot com#36607 [Com]: default_prefetch problem w/ dbLinks
- tony2001@php.net#36607 [Opn->Fbk]: default_prefetch problem w/ dbLinks
- jreed at myers dot com#36607 [Fbk->Opn]: default_prefetch problem w/ dbLinks
- cjbj at hotmail dot com#36607 [Com]: default_prefetch problem w/ dbLinks
- jreed at myers dot com#36607 [Opn]: default_prefetch problem w/ dbLinks
- tony2001@php.net#36607 [Opn->Fbk]: default_prefetch problem w/ dbLinks
- php at contact dot ady dot ro#36607 [Com]: default_prefetch problem w/ dbLinks
- jonswaff at gmail dot comBug #36607 [Com]: default_prefetch problem w/ dbLinks