Bug #7306 Updated: segfault when binding undefined php variable with a BLOB hostvar
| From: | lobbin@php.net | Date: | Fri, 11 Jan 2002 21:48:41 +0000 |
| Subject: | Bug #7306 Updated: segfault when binding undefined php variable with a BLOB hostvar | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76689@lists.php.net to get a copy of this message | ||
ID: 7306
Updated by: lobbin
Reported By: alex@zend.com
Old Status: Open
Status: Feedback
Bug Type: OCI8 related
Operating System: linux-glibc21, OCI 8.1.5.0.0
PHP Version: 4.0 Latest CVS (18/10/2000)
New Comment:
Can you reproduce this with latest PHP 4.1.1?
Previous Comments:
------------------------------------------------------------------------
[2001-05-11 21:42:11] sniper@php.net
Why was this duplicate?
------------------------------------------------------------------------
[2000-10-18 05:02:37] alex@zend.com
<?php
$db = @ocilogon("scott", "tiger", "ZTST");
$statement = ociparse($db, "CREATE TABLE foo (blob_field
BLOB)");
ociexecute($statement);
$query = "INSERT INTO foo (blob_field) " .
"VALUES (EMPTY_BLOB()) " .
"RETURNING blob_field into :blob";
$statement = ociparse($db, $query);
ocibindbyname($statement, ':blob', &$undefined, -1,
OCI_B_BLOB);
$result = ociexecute($statement);
?>
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=7306&edit=1