1--TEST-- 2PECL Bug #6109 (Error messages not kept) 3--SKIPIF-- 4<?php if (!extension_loaded('oci8')) die ("skip no oci8 extension"); ?> 5--FILE-- 6<?php 7 8require(dirname(__FILE__).'/connect.inc'); 9 10// Run Test 11 12echo "Test 1\n"; 13 14$s = oci_parse($c, 'delete from table_does_not_exist'); 15$r = @oci_execute($s); 16 17if ($r) { 18 echo "whoops - table does exist\n"; 19} else { 20 for ($i = 0; $i < 5; $i++) { 21 $err = oci_error($s); 22 echo ($i) .' -> '.$err['message'] ."\n"; 23 } 24} 25 26// Cleanup 27 28oci_close($c); 29 30echo "Done\n"; 31 32?> 33--EXPECTF-- 34Test 1 350 -> ORA-00942: %s 361 -> ORA-00942: %s 372 -> ORA-00942: %s 383 -> ORA-00942: %s 394 -> ORA-00942: %s 40Done 41