flock() php_flock() compile problems

php.internals

Frank M. Kromann

19 years ago
Hello Everyone, I hope I'm not too far off here but getting rid of flock.c in win32\build\config.w32 an adding flock_compat to ext\standard\config.w32 seams to solve the compile problems, at least in the 5.2 branch. - Frank

Rasmus Lerdorf

19 years ago
Frank M. Kromann wrote:
> Hello Everyone, > > I hope I'm not too far off here but getting rid of flock.c in > win32\build\config.w32 an adding flock_compat to ext\standard\config.w32 > seams to solve the compile problems, at least in the 5.2 branch.
Rob tracked it down to the fact that it was using stdio. I hadn't realized that. So, the fix is to use VCWD_OPEN_MODE instead of FOPEN and a write() instead of the fprintf. -Rasmus