Bug #52027 [Opn->Bgs]: NULL bytes in mysqli prepared statements
| From: | auroraeosrose@php.net | Date: | Wed, 09 Jun 2010 13:12:51 +0000 |
| Subject: | Bug #52027 [Opn->Bgs]: NULL bytes in mysqli prepared statements | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-4465@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52027&edit=1
ID: 52027
Updated by: auroraeosrose@php.net
Reported by: jamie at splooshmedia dot co dot uk
Summary: NULL bytes in mysqli prepared statements
-Status: Open
+Status: Bogus
Type: Bug
Package: PHP-GTK related
Operating System: Windows 7
PHP Version: Irrelevant
New Comment:
Cannot reproduce - works perfectly here
check that you do not have the wrong libmysql being loaded (not
php_mysqli.dll - but the libmysql.dll that it uses - this sounds like a
client mismatch)
Previous Comments:
------------------------------------------------------------------------
[2010-06-09 11:22:09] jamie at splooshmedia dot co dot uk
Description:
------------
MySQLi prepared statements always return NULL bytes when running in
PHP-GTK. This bug does not exist in WAMP environment. Normal queries
work fine in PHP-GTK. My PHP-GTK/MySQL setup is fine.
Test script:
---------------
$test = null;
if($stmt = $mysqli->prepare("SELECT 'here 3' FROM saved_data LIMIT 1"))
{
echo 'here 1';
$stmt->bind_result($test);
$stmt->execute();
while($stmt->fetch()) {
echo 'here 2';
var_dump($test);
}
}
Expected result:
----------------
here 1
here 2
string(6) "here 3"
Actual result:
--------------
here 1
here 2
string(7) " "
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52027&edit=1