sixd            Wed Jul 16 19:51:54 2008 UTC

  Modified files:              
    /php-src/ext/oci8/tests     xmltype_01.phpt 
  Log:
  improve skipif
  
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/xmltype_01.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/oci8/tests/xmltype_01.phpt
diff -u php-src/ext/oci8/tests/xmltype_01.phpt:1.3 
php-src/ext/oci8/tests/xmltype_01.phpt:1.4
--- php-src/ext/oci8/tests/xmltype_01.phpt:1.3  Tue May 27 14:30:38 2008
+++ php-src/ext/oci8/tests/xmltype_01.phpt      Wed Jul 16 19:51:53 2008
@@ -2,6 +2,7 @@
 Basic XMLType test
 --SKIPIF--
 <?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
+<?php if (!extension_loaded("simplexml")) die("skip no simplexml extension"; ?>
 --FILE--
 <?php
 
@@ -46,7 +47,7 @@
        $s = oci_parse($c, 'select XMLType.getClobVal(xt_spec)
                                        from xtt where xt_id = 1');
        oci_execute($s);
-       $row = oci_fetch_row($s);       
+       $row = oci_fetch_row($s);
        $data = $row[0]->load();
        var_dump($data);
        return($data);
@@ -65,10 +66,10 @@
 $s = oci_parse($c, 'update xtt
                                        set xt_spec = XMLType(:clob)
                                        where xt_id = 1');
-$lob = oci_new_descriptor($c, OCI_D_LOB);      
+$lob = oci_new_descriptor($c, OCI_D_LOB);
 oci_bind_by_name($s, ':clob', $lob, -1, OCI_B_CLOB);
-$lob->writeTemporary($sx->asXml()); 
-oci_execute($s);       
+$lob->writeTemporary($sx->asXml());
+oci_execute($s);
 $lob->close();
 
 // Verify



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to