diff options
author | Johannes Schlüter <johannes@php.net> | 2008-01-03 14:33:46 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2008-01-03 14:33:46 +0000 |
commit | 32dfad780c175e6ac45aadf7334377237b448390 (patch) | |
tree | 8776e7af292e90376841714d261a2673753d51ec | |
parent | 60a1a173998a2cfcb9c05daa2c11039f9a8d69dc (diff) | |
download | php-git-32dfad780c175e6ac45aadf7334377237b448390.tar.gz |
- MFH: Remove more replication stuff
-rw-r--r-- | ext/mysqli/mysqli.c | 7 | ||||
-rwxr-xr-x | ext/mysqli/tests/mysqli_master_query.phpt | 46 |
2 files changed, 0 insertions, 53 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index f15154eaac..c7a41a896b 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -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 index 1a0bbac907..0000000000 --- a/ext/mysqli/tests/mysqli_master_query.phpt +++ /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 |