setlocale() crashes apache (php_xdebug.dll).
Posted October 27th, 2008 by tino
If I set the locale using setlocale() it works the first time.
When I set the local again (to something else), apache (or php_xdebug.dll) crashes.
I'm using the latest Vs.php build for VS 2008 (at this moment) in trial mode. It's on a PHP5 project.
The error in the eventlog;
Faulting application apache.exe, version 2.0.49.0, time stamp 0x4068a0a1, faulting module php_xdebug.dll, version 2.0.3.0, time stamp 0x47fcd9b9, exception code 0xc0000005, fault offset 0x00008493, process id 0x1af8, application start time 0x01c9381827314e6d.
Any ideas?
Te preproduce; use setlocale(LC_TIME, "english") when the page loads, and use setlocale(LC_TIME, "nld_nld") after a GET request.
Tino


Please try using the DBG
Please try using the DBG debug engine? You can configure it in the project debug properties.