#32956 [Asn->Csd]: mysql_bind_result doesn't support MYSQL_TYPE_NULL

From: Date: Fri, 06 May 2005 00:33:30 +0000
Subject: #32956 [Asn->Csd]: mysql_bind_result doesn't support MYSQL_TYPE_NULL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-78674@lists.php.net to get a copy of this message
ID: 32956 Updated by: sniper@php.net Reported By: georg@php.net -Status: Assigned +Status: Closed Bug Type: MySQLi related Operating System: all PHP Version: 5.0.4 Assigned To: georg New Comment: Georg fixed this already, AFAICT. Previous Comments: ------------------------------------------------------------------------ [2005-05-05 14:54:13] georg@php.net Description: ------------ mysqli_bind_result doesn't support MYSQL_TYPE_NULL. This causes libmysql to fail with error buffer_length=0. Reproduce code: --------------- <?php $mysql = new mysqli("localhost", "root", ""); $stmt = $mysql->prepare("SELECT NULL FROM DUAL"); $stmt->execute(); $stmt->bind_result($val); $stmt->fetch(); var_dump($val); $stmt->close(); $mysql->close(); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32956&edit=1

« previous php.bugs (#78674) next »