Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Windows - Apache Crashes When Enabling PDO-MySQL in PHP |
|
Author |
|
negcx
Joined: 06 Apr 2011 Posts: 1
|
Posted: Wed 06 Apr '11 21:45 Post subject: Windows - Apache Crashes When Enabling PDO-MySQL in PHP |
|
|
I'm on Windows XP SP3 with Apache 2.2, PHP 5.3.5, and MySQL 5.5.
I'm trying to enable PDO support for MySQL in PHP, so I've added extension=php_pdo_mysql.dll in PHP.INI.
When I do this, Apache crashes on startup. php5ts.dll is the file that is actually crashing.
A few notes: I have my extension_dir set correctly in PHP.INI, and I've also tried putting php_pdo_mysql.dll in System32.
Any ideas what's going on? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 07 Apr '11 10:27 Post subject: |
|
|
Can you run that PHP script form command line or does PHP crash than too?
--- edit ---
googling I found two answers:
Quote: |
The unique solution i found :
Install LibMySQL.DLL FROM 5.0.51a package (working with last 5.1.44 MySQL Version)
http://www.netfulvpc.fr/files/libmysql_dll.zip
------------------------
Ok, i have a very bad but working solution :p)
Open ext\php_pdo_mysql.dll with an Hex Editor
Search for "83 C3 50" offset 0x000024d5 (in php 5.2.12 vc6)
Replace by 83 C3 "54"
The problem is a bad structure size... (struct pdo_column_data)
I tried to fix that in libmysql.dll but that crash php_mysqli
|
|
|
Back to top |
|
|
|
|
|
|