note 55555 added to function.mysqli-query
| From: | andrey@php.net | Date: | Sun, 07 Aug 2005 07:03:38 +0000 |
| Subject: | note 55555 added to function.mysqli-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93187@lists.php.net to get a copy of this message | ||
WARNING: This function was buggy on 64bit machines till 5.0.5. Affected versions 5.0.0-5.0.4. The
problem appears when a value for the third parameter is passed - this will lead to instant FALSE
returned by the function. Therefore if you need to use unbuffered query don't use this function
with the aforementioned versions but you mysqli_real_query() and mysqli_use_result().
If you have the rights to patch you PHP installation the fix is easy:
In file ext/mysqli/myslqi_nonapi.c, function PHP_FUNCTION(mysqli_query)
change
unsigned int resultmode=0;
to
unsigned long resultmode=0;
Thanks!
----
Manual Page -- http://www.php.net/manual/en/function.mysqli-query.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55555
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55555&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55555&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55555&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55555&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55555&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55555&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55555&report=yes
Search -- http://master.php.net/manage/user-notes.php