Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / oci8 / tests / pecl_bug6109.phpt
blobd0762fa883a5f24c562373306475e84ae462a48e
1 --TEST--
2 PECL Bug #6109 (Error messages not kept)
3 --SKIPIF--
4 <?php if (!extension_loaded('oci8')) die ("skip no oci8 extension"); ?>
5 --FILE--
6 <?php
8 require(dirname(__FILE__).'/connect.inc');
10 // Run Test
12 echo "Test 1\n";
14 $s = oci_parse($c, 'delete from table_does_not_exist');
15 $r = @oci_execute($s);
17 if ($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         }
26 // Cleanup
28 oci_close($c);
30 echo "Done\n";
33 --EXPECTF--
34 Test 1
35 0 -> ORA-00942: %s
36 1 -> ORA-00942: %s
37 2 -> ORA-00942: %s
38 3 -> ORA-00942: %s
39 4 -> ORA-00942: %s
40 Done