tony2001 Thu Dec 21 21:49:13 2006 UTC
Modified files:
/php-src/main SAPI.c
Log:
fix ws, cs and overall code readability
http://cvs.php.net/viewvc.cgi/php-src/main/SAPI.c?r1=1.218&r2=1.219&diff_format=u
Index: php-src/main/SAPI.c
diff -u php-src/main/SAPI.c:1.218 php-src/main/SAPI.c:1.219
--- php-src/main/SAPI.c:1.218 Mon Dec 18 13:15:18 2006
+++ php-src/main/SAPI.c Thu Dec 21 21:49:13 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: SAPI.c,v 1.218 2006/12/18 13:15:18 tony2001 Exp $ */
+/* $Id: SAPI.c,v 1.219 2006/12/21 21:49:13 tony2001 Exp $ */
#include <ctype.h>
#include <sys/stat.h>
@@ -849,13 +849,15 @@
{
if (sapi_module.getenv) {
char *value, *tmp = sapi_module.getenv(name, name_len
TSRMLS_CC);
- if(tmp) value = estrdup(tmp);
- else return NULL;
+ if (tmp) {
+ value = estrdup(tmp);
+ } else {
+ return NULL;
+ }
sapi_module.input_filter(PARSE_ENV, name, &value,
strlen(value), NULL TSRMLS_CC);
return value;
- } else {
- return NULL;
- }
+ }
+ return NULL;
}
SAPI_API int sapi_get_fd(int *fd TSRMLS_DC)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php