mirror of
https://github.com/php/php-src.git
synced 2026-04-20 22:41:20 +02:00
Although the doc said it is (unsigned int *), but it is ulong* in the libmysql 5.0 's source codes
25 lines
495 B
PHP
25 lines
495 B
PHP
--TEST--
|
|
Bug #66043 (Segfault calling bind_param() on mysqli)
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
require_once("connect.inc");
|
|
if ($IS_MYSQLND) {
|
|
die("skip libmysql only test");
|
|
}
|
|
require_once('skipifconnectfailure.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require 'connect.inc';
|
|
$db = new mysqli($host, $user, $passwd, 'mysql');
|
|
|
|
$stmt = $db->stmt_init();
|
|
$stmt->prepare("SELECT User FROM user WHERE password=\"\"");
|
|
$stmt->execute();
|
|
$stmt->bind_result($testArg);
|
|
echo "Okey";
|
|
?>
|
|
--EXPECTF--
|
|
Okey
|