cvs: php-src(PHP_5_3) /ext/oci8/tests xmltype_01.phpt

From: Date: Wed, 16 Jul 2008 19:52:01 +0000
Subject: cvs: php-src(PHP_5_3) /ext/oci8/tests xmltype_01.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-51183@lists.php.net to get a copy of this message
sixd Wed Jul 16 19:52:01 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/oci8/tests xmltype_01.phpt Log: MFH: improve skipif http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/xmltype_01.phpt?r1=1.1.2.1&r2=1.1.2.1.2.1&diff_format=u Index: php-src/ext/oci8/tests/xmltype_01.phpt diff -u php-src/ext/oci8/tests/xmltype_01.phpt:1.1.2.1 php-src/ext/oci8/tests/xmltype_01.phpt:1.1.2.1.2.1 --- php-src/ext/oci8/tests/xmltype_01.phpt:1.1.2.1 Thu Aug 30 17:33:00 2007 +++ php-src/ext/oci8/tests/xmltype_01.phpt Wed Jul 16 19:52:01 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

« previous php.cvs (#51183) next »