1--TEST-- 2Bug #47050 (mysqli_poll() modifies improper variables) 3--EXTENSIONS-- 4mysqli 5--SKIPIF-- 6<?php 7require_once 'skipifconnectfailure.inc'; 8?> 9--FILE-- 10<?php 11 include 'connect.inc'; 12 13 $link1 = my_mysqli_connect($host, $user, $passwd, null, $port, $socket); 14 mysqli_select_db($link1, $db); 15 16 $link1->query("SELECT 'test'", MYSQLI_ASYNC); 17 $all_links = array($link1); 18 $links = $errors = $reject = $all_links; 19 mysqli_poll($links, $errors, $reject, 1); 20 21 echo "links: ", sizeof($links), "\n"; 22 echo "errors: ", sizeof($errors), "\n"; 23 echo "reject: ", sizeof($reject), "\n"; 24 echo "all_links: ", sizeof($all_links), "\n"; 25 26 $link1->close(); 27?> 28--EXPECT-- 29links: 1 30errors: 0 31reject: 0 32all_links: 1 33