最近在碰PDO(PHP Data Object),使用的時候忽然發現,在select資料的時候apache會被關掉,insert不會,只有select的時候才會,不知道是啥鬼狀況,log裡面就只出現這行
Parent: child process exited with status 255 — Restarting
膜拜了很久的google大神之後才發現這篇,上面提到這是xampp 1.70在windows上(?)的錯誤,修正方法如下
Problem solved. Turns out this is a bug in XAMPP 1.7.0 PHP and the fix is already there.
To fix the problem:
in “xampp\apache\bin”
copy libmysql_5.0.51a.dll libmysql.dll
in “xampp\php”
copy libmysql_5.0.51a.dll libmysql.dll
in “xampp\php\ext”
copy php_mysql_5.0.51a.dll php_mysql.dll
copy php_mysqli_5.0.51a.dll php_mysqli.dll
弄好之後就正常了…