pollita Mon Dec 17 05:16:40 2007 UTC
Modified files:
/php-src/ext/standard filestat.c
Log:
Add scoping braces for variable declaration
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/filestat.c?r1=1.170&r2=1.171&diff_format=u
Index: php-src/ext/standard/filestat.c
diff -u php-src/ext/standard/filestat.c:1.170
php-src/ext/standard/filestat.c:1.171
--- php-src/ext/standard/filestat.c:1.170 Wed Nov 21 11:28:26 2007
+++ php-src/ext/standard/filestat.c Mon Dec 17 05:16:40 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.170 2007/11/21 11:28:26 jani Exp $ */
+/* $Id: filestat.c,v 1.171 2007/12/17 05:16:40 pollita Exp $ */
#include "php.h"
#include "fopen_wrappers.h"
@@ -458,6 +458,7 @@
efree(grbuf);
gid = gr.gr_gid;
#else
+{
struct group *gr = getgrnam(Z_STRVAL_P(group));
if (!gr) {
@@ -465,6 +466,7 @@
RETURN_FALSE;
}
gid = gr->gr_gid;
+}
#endif
} else {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "parameter 2 should
be string or integer, %s given", zend_zval_type_name(group));
@@ -575,6 +577,7 @@
efree(pwbuf);
uid = pw.pw_uid;
#else
+{
struct passwd *pw = getpwnam(Z_STRVAL_P(user));
if (!pw) {
@@ -582,6 +585,7 @@
RETURN_FALSE;
}
uid = pw->pw_uid;
+}
#endif
} else {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "parameter 2 should
be string or integer, %s given", zend_zval_type_name(user));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php