]> granicus.if.org Git - php/commitdiff
- MFH: Remove more replication stuff
authorJohannes Schlüter <johannes@php.net>
Thu, 3 Jan 2008 14:33:46 +0000 (14:33 +0000)
committerJohannes Schlüter <johannes@php.net>
Thu, 3 Jan 2008 14:33:46 +0000 (14:33 +0000)
ext/mysqli/mysqli.c
ext/mysqli/tests/mysqli_master_query.phpt [deleted file]

index f15154eaacb5a2ce0d5ee8b305a5493d88dbe1a3..c7a41a896b65fdbdfa32245495db458c104cc4a3 100644 (file)
@@ -760,13 +760,6 @@ PHP_MINIT_FUNCTION(mysqli)
 
        REGISTER_LONG_CONSTANT("MYSQLI_SET_CHARSET_NAME", MYSQL_SET_CHARSET_NAME, CONST_CS | CONST_PERSISTENT);
 
-       /* replication */
-#if !defined(HAVE_MYSQLND)
-       REGISTER_LONG_CONSTANT("MYSQLI_RPL_MASTER", MYSQL_RPL_MASTER, CONST_CS | CONST_PERSISTENT);
-       REGISTER_LONG_CONSTANT("MYSQLI_RPL_SLAVE", MYSQL_RPL_SLAVE, CONST_CS | CONST_PERSISTENT);
-       REGISTER_LONG_CONSTANT("MYSQLI_RPL_ADMIN", MYSQL_RPL_ADMIN, CONST_CS | CONST_PERSISTENT);
-#endif
-       
        /* bind support */
        REGISTER_LONG_CONSTANT("MYSQLI_NO_DATA", MYSQL_NO_DATA, CONST_CS | CONST_PERSISTENT);
 #ifdef MYSQL_DATA_TRUNCATED
diff --git a/ext/mysqli/tests/mysqli_master_query.phpt b/ext/mysqli/tests/mysqli_master_query.phpt
deleted file mode 100755 (executable)
index 1a0bbac..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
---TEST--
-mysqli_master_query()
---SKIPIF--
-<?php
-require_once('skipif.inc');
-require_once('skipifemb.inc');
-require_once('skipifconnectfailure.inc');
-if (!function_exists('mysqli_master_query')) {
-       die("skip mysqli_master_query() not available");
-}
-require_once('connect.inc');
-if (!$TEST_EXPERIMENTAL)
-       die("skip - experimental (= unsupported) feature");
-?>
---FILE--
-<?php
-       /* NOTE: tests is a stub, but function is deprecated, as long as it does not crash when invoking it... */
-       include "connect.inc";
-
-       $tmp    = NULL;
-       $link   = NULL;
-
-       if (NULL !== ($tmp = @mysqli_master_query()))
-               printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp);
-
-       if (NULL !== ($tmp = @mysqli_master_query($link)))
-               printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp);
-
-       if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
-               printf("[003] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
-                       $host, $user, $db, $port, $socket);
-       }
-
-       if (!is_bool($tmp = mysqli_master_query($link, 'SELECT 1')))
-               printf("[004] Expecting boolean/[true|false] value, got %s/%s\n", gettype($tmp), $tmp);
-
-       mysqli_close($link);
-
-       if (NULL !== ($tmp = mysqli_master_query($link)))
-               printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
-
-       print "done!";
-?>
---EXPECTF--
-Warning: mysqli_master_query(): Couldn't fetch mysqli in %s on line %d
-done!
\ No newline at end of file