]> granicus.if.org Git - php/commitdiff
Fixed a compile failure in Win32 caused by previous patch.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 16 Aug 2002 15:04:00 +0000 (15:04 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 16 Aug 2002 15:04:00 +0000 (15:04 +0000)
Changed else statement to comply with PHP coding standards.

ext/standard/pageinfo.c

index 13d500bef72bc0a144e9db0c0aff35e306652b7d..e080e23233c0f08675532a562ffeabe7346877ba 100644 (file)
 #include <pwd.h>
 #endif
 #endif
+#if HAVE_GRP_H
+# ifdef PHP_WIN32
+#  include "win32/grp.h"
+# else
+#  include <grp.h>
+# endif
+#endif
+#ifdef PHP_WIN32
+#undef getgid
+#define getgroups(a, b) 0
+#define getgid() 1
+#define getuid() 1
+#endif
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -56,8 +69,7 @@ PHPAPI void php_statpage(TSRMLS_D)
                        BG(page_gid)   = pstat->st_gid;
                        BG(page_inode) = pstat->st_ino;
                        BG(page_mtime) = pstat->st_mtime;
-               } 
-               else { /* handler for situations where there is no source file, ex. php -r */
+               } else { /* handler for situations where there is no source file, ex. php -r */
                        BG(page_uid) = getuid();
                        BG(page_gid) = getgid();
                }