mirror of
https://github.com/php/php-src.git
synced 2024-11-29 21:04:10 +08:00
37 lines
886 B
PHP
37 lines
886 B
PHP
--TEST--
|
|
Bug #26133 (ocifreedesc() segfault)
|
|
--SKIPIF--
|
|
<?php
|
|
require 'skipif.inc';
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require 'connect.inc';
|
|
require 'create_table.inc';
|
|
|
|
if ($connection) {
|
|
$ora_sql = "INSERT INTO
|
|
".$schema."php_test_table (id, value)
|
|
VALUES ('1','1')
|
|
RETURNING
|
|
ROWID
|
|
INTO :v_rowid ";
|
|
|
|
$statement = OCIParse($connection,$ora_sql);
|
|
$rowid = OCINewDescriptor($connection,OCI_D_ROWID);
|
|
OCIBindByName($statement,":v_rowid", $rowid,-1,OCI_B_ROWID);
|
|
if (OCIExecute($statement)) {
|
|
OCICommit($connection);
|
|
}
|
|
OCIFreeStatement($statement);
|
|
$rowid->free();
|
|
}
|
|
|
|
require 'drop_table.inc';
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Done
|
|
|