From: Operating system: Windows PHP version: Irrelevant Package: *Compile Issues Bug Type: Bug Bug description:win32 and devel directories not created by makefile.
Description: ------------ The win32 and devel directories are only created during configure.js. If, after a success nmake, the release directory is deleted, the win32 and devel directories are not recreated. win32 and devel is never added to BUILD_DIRS_SUB (via ADD_FLAGS). Having added "win32" to the build_dirs array initialization, the win32 directory will still fail to be created in a particular instance. The ADD_FLAG routine uses indexOf() to determine if "win32" is already part of the flags. If an extension containing the characters "win32" already exists (pecl/win32service for example), then the "win32" check will fail and no "win32" will be added to BUILD_DIRS_SUB. The "devel" directory is only added if !MODE_PHPIZE is true. But putting ADD_FLAG("BUILD_DIRS_SUB", "devel"); in generate_phpize(); is too late as generate_makefile(); has already been called. I don't want to do too much with this as I'm not 100% sure, so the additional test for "devel" has been added in the attached patch. The supplied patch deals with these issues. The end result is just that "win32" and, if appropriate "devel" are added to BUILD_DIRS_SUB so a nmake will always create them if they are missing. -- Edit bug report at https://bugs.php.net/bug.php?id=55710&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55710&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55710&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55710&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55710&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55710&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55710&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55710&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55710&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55710&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55710&r=support Expected behavior: https://bugs.php.net/fix.php?id=55710&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55710&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55710&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55710&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55710&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55710&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55710&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55710&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55710&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55710&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55710&r=mysqlcfg