1--TEST-- 2Bug #66043 (Segfault calling bind_param() on mysqli) 3--SKIPIF-- 4<?php 5require_once('skipif.inc'); 6require_once("connect.inc"); 7if ($IS_MYSQLND) { 8 die("skip libmysql only test"); 9} 10require_once('skipifconnectfailure.inc'); 11?> 12--FILE-- 13<?php 14require 'connect.inc'; 15if (!$db = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 16 printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); 17} 18 19$stmt = $db->stmt_init(); 20$stmt->prepare("SELECT User FROM user WHERE password=\"\""); 21$stmt->execute(); 22$stmt->bind_result($testArg); 23echo "Okey"; 24?> 25--EXPECTF-- 26Okey 27