Bug #51300 [Bgs]: SELECT * CRASH With LibMySQL > 5.0.51
| From: | pajoye@php.net | Date: | Mon, 15 Mar 2010 09:36:01 +0000 |
| Subject: | Bug #51300 [Bgs]: SELECT * CRASH With LibMySQL > 5.0.51 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-148633@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51300&edit=1
ID: 51300
Updated by: pajoye@php.net
Reported by: tanguy dot pruvot at gmail dot com
Summary: SELECT * CRASH With LibMySQL > 5.0.51
Status: Bogus
Type: Bug
Package: PDO related
Operating System: Windows 7
PHP Version: 5.2.13
New Comment:
You don't need libmysql 5.1 to communicate with a 5.1 server, libmysql
5.0 works just fine.
I would also suggest to move to 5.3 if you like a more recent mysql
drivers (it uses a new driver not depending on libmysql). Symfony works
fine with 5.3.
Previous Comments:
------------------------------------------------------------------------
[2010-03-15 10:33:20] tanguy dot pruvot at gmail dot com
Sure i understand... but why 5.0.51 ? 5.0 community server has been
replaced by
5.1 since .... a lot of time
I hope my solution will be usefull to others like me who want same
environnement
for symfony in linux and windows... with a 5.0.52 to 90 or 5.1 MySQL
Server
Detected and fixed the problem with OllyDbg... mysqli is not affected
Does all other PDO db use this same 0x50 byte-sized column structure ?
------------------------------------------------------------------------
[2010-03-15 10:23:46] pajoye@php.net
Sorry but there is a misunderstanding.
We provide libmysql 5.0.x (don't remember which version exactly right
now). PHP was compiled against this version, size of the struct and
other elemenets were defined at compilation and linking time.
Further updates of the 5.0.x libraries should not change these sizs or
it will break the binary compatibility and makes the applications behave
badly (crashes being one of these effects).
Thanks for your understanding but there is no bug in php.
------------------------------------------------------------------------
[2010-03-15 10:16:23] pajoye@php.net
See the definition of ABI and explain it to the mysql developers:
http://en.wikipedia.org/wiki/Application_binary_interface
That's not something we can or could test or change at runtime.
------------------------------------------------------------------------
[2010-03-15 10:14:53] tanguy dot pruvot at gmail dot com
The Binary Fix is for php_pdo_mysql.dll ... not libmysql
------------------------------------------------------------------------
[2010-03-15 10:13:36] tanguy dot pruvot at gmail dot com
please make a check of column data length in pdo mysql startup... An
error is
better than a crash without log...
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=51300
--
Edit this bug report at http://bugs.php.net/bug.php?id=51300&edit=1