[PHP-DEV] PHP 4.0 Bug #7306: segfault when binding undefined php variable with a BLOB hostvar From: alex <email protected>
Date: 10/18/00

From: alex <email protected>
Operating system: linux-glibc21, OCI 8.1.5.0.0
PHP version: 4.0 Latest CVS (18/10/2000)
PHP Bug Type: OCI8 related
Bug description: segfault when binding undefined php variable with a BLOB hostvar

<?php
        $db =  <email protected>("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 Bug report at: http://bugs.php.net/?id=7306&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>