]> granicus.if.org Git - php/commitdiff
MFH - Weaker test: functions are only available if HAVE_EMBEDDED_MYSQLI is set. There...
authorUlf Wendel <uw@php.net>
Fri, 29 May 2009 10:25:49 +0000 (10:25 +0000)
committerUlf Wendel <uw@php.net>
Fri, 29 May 2009 10:25:49 +0000 (10:25 +0000)
ext/mysqli/tests/mysqli_class_mysqli_driver_interface.phpt

index d6d2b755b4008c04157cce802f0a0939b2b08562..681590e1ab8154722ed1219a623d3263fbbd5577 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 Interface of the class mysqli_driver
 --SKIPIF--
-<?php 
+<?php
 require_once('skipif.inc');
 require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
@@ -20,11 +20,12 @@ require_once('skipifconnectfailure.inc');
        $methods = get_class_methods($driver);
        $expected_methods = array();
 
-       if (!$IS_MYSQLND) {
-               /* libmysql only */
+       if (!$IS_MYSQLND && (isset($methods['embedded_server_start']))) {
+               /* libmysql only - needs extra compile flag, no way to check properly in the
+               PHP user land if its compiled in or not */
                $expected_methods = array_merge($expected_methods, array(
-                       'embedded_server_start'         => true,
-                       'embedded_server_end'           => true,
+                               'embedded_server_start'         => true,
+                               'embedded_server_end'           => true,
                ));
        }