ID: 44683 Updated by: paj...@php.net Reported By: d_kelsey at uk dot ibm dot com -Status: No Feedback +Status: Closed Bug Type: Reproducible crash Operating System: win32 only - Windows XP PHP Version: 5.2.8 Assigned To: pajoye New Comment:
Fixed in 5.2, 5.3 and HEAD. It was bug in the Windows VC6 CRT, the same code works well on any recent windows (vista, 2008, win7). fdopen crashes when an invalid mode is given. Previous Comments: ------------------------------------------------------------------------ [2009-08-26 19:57:02] s...@php.net Automatic comment from SVN on behalf of pajoye Revision: http://svn.php.net/viewvc/?view=revision&revision=287779 Log: - fix #44683, popen crashes when an invalid mode is passed (works on 2k8/vista/win7) ------------------------------------------------------------------------ [2009-03-10 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-03-02 21:17:23] paj...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Try a VC9 php 5.3 build please. ------------------------------------------------------------------------ [2009-01-19 17:51:32] d_kelsey at uk dot ibm dot com This is still a problem in php528. The crash looks like it is due to a bug in the Microsoft C runtime library when calling _fdopen and the type being passed to it is "e". I think popen_ex in tsrm_win32.c should check that the first byte is either "w" or "r" and if not raise a php warning "invalid argument". Then it should check if the 2nd byte is present and if so it should only allow "b" or "t" anything else should also raise a php warning "invalid argument". This should then bring php.net on windows in line with what happens on php.net for linux. ------------------------------------------------------------------------ [2008-11-04 19:19:08] paj...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ I can't reproduce it locally, can you try again with the new snaps please? ------------------------------------------------------------------------ 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/44683 -- Edit this bug report at http://bugs.php.net/?id=44683&edit=1