Bug #7306 Updated: segfault when binding undefined php variable with a BLOB hostvar
| From: | sniper@php.net | Date: | Sat, 12 May 2001 01:42:11 +0000 |
| Subject: | Bug #7306 Updated: segfault when binding undefined php variable with a BLOB hostvar | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-54963@lists.php.net to get a copy of this message | ||
ID: 7306
Updated by: sniper
Reported By: alex@zend.com
Old-Status: Duplicate
Status: Open
Bug Type: OCI8 related
Operating system:
PHP Version: 4.0 Latest CVS (18/10/2000)
Assigned To:
Comments:
Why was this duplicate?
Previous Comments:
---------------------------------------------------------------------------
[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);
?>
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=7306&edit=2