4591566 发表于 2017-1-8 11:57:00

xampp下跑zendframe框架apache报pdo错

  今天在xampp下跑zendframe框架 链接数据库,遇到这样一个问题
  当用php_pdo_mysql.dll扩展库链接数据库,发现IE页面突然出错自动关闭
  点击调试 出现信息如下
  szAppVer : 2.2.11.0  szModName : php_pdo_mysql.dll
szModVer : 5.2.8.8 offset : 0000250a
  后来google后发现有一些老外也遇到了和我一样的问题如下:
  Error details from Microsoft:
- szAppName : apache.exe
- szAppVer : 2.2.11.0
- szModName : php_pdo_mysql.dll
- szModVer : 5.2.8.8
- offset : 0000250a

Files reported:
C:\DOCUME~1\User\CONFIG~1\Temp\WER455f.dir01\apache.exe.mdmp
C:\DOCUME~1\User\CONFIG~1\Temp\WER455f.dir01\appcompat.txt

Notes:
- Windows XP
- Xampp version 1.7.0
- xampp/php/php5.ini: "extension=php_pdo_mysql.dll" enabled. "extension=php_pdo.dll" enabled
  解决方法1
  Go to the directory "\xampp\mysql\bin" and execute the programm "mysql_update.exe".
  进到\xampp\mysql\bin目录下运行mysql_update.exe(若无则运行mysql_upgrate.exe)
  解决方法2
  下载一个最新的libmysql.dll扩展库
  英文原文如下
After downloading 1.7 for windows, I found that any php programs using PDO crashed apache. Here's the fix, which I found on the german language xampp board here: http://www.apachefriends.org/f/viewtopic.php?f=4&t=32587

download this: http://windows.php.net/downloads/snaps/php-5.2-win32-VC6-x86-latest.zip

unzip, then copy libmysql.dll into xampp\apache\bin and xampp\php. Restart apache and you should be good.
将下载下来的php-5.2-win32-VC6-x86-latest.zip 解压取出其中中的libmysql.dll 扩展库 拷贝到 xampp\apache\bin 和xampp\php目录下去覆盖原文件,重新启动apache ok!
页: [1]
查看完整版本: xampp下跑zendframe框架apache报pdo错