jani            Fri Aug 31 08:13:07 2007 UTC

  Modified files:              
    /php-src/main       php_ini.c 
  Log:
  ws fixes
  
http://cvs.php.net/viewvc.cgi/php-src/main/php_ini.c?r1=1.155&r2=1.156&diff_format=u
Index: php-src/main/php_ini.c
diff -u php-src/main/php_ini.c:1.155 php-src/main/php_ini.c:1.156
--- php-src/main/php_ini.c:1.155        Fri Aug 31 08:09:41 2007
+++ php-src/main/php_ini.c      Fri Aug 31 08:13:07 2007
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_ini.c,v 1.155 2007/08/31 08:09:41 jani Exp $ */
+/* $Id: php_ini.c,v 1.156 2007/08/31 08:13:07 jani Exp $ */
 
 #include "php.h"
 #include "ext/standard/info.h"
@@ -75,7 +75,7 @@
                                } else {
                                        display_string = "no value";
                                        display_string_length = sizeof("no 
value") - 1;
-                               }       
+                               }
                        }
                } else if (ini_entry->value && ini_entry->value[0]) {
                        display_string = ini_entry->value;
@@ -88,7 +88,7 @@
                        } else {
                                display_string = "no value";
                                display_string_length = sizeof("no value") - 1;
-                       }       
+                       }
                }
 
                if (esc_html) {
@@ -123,7 +123,7 @@
                PUTS(" => ");
                php_ini_displayer_cb(ini_entry, ZEND_INI_DISPLAY_ORIG);
                PUTS("\n");
-       }       
+       }
        return 0;
 }
 /* }}} */
@@ -137,7 +137,7 @@
 
        if (module) {
                module_number = module->module_number;
-       } else { 
+       } else {
                module_number = 0;
        }
        php_info_print_table_start();
@@ -176,14 +176,14 @@
                                }
                                if (!strcasecmp(Z_STRVAL_P(arg1), "extension")) 
{ /* load function module */
                                        zval copy;
-                                       
+
                                        copy = *arg2;
                                        zval_copy_ctor(&copy);
                                        copy.refcount = 0;
-                                       
zend_llist_add_element(&extension_lists.functions, &copy); 
+                                       
zend_llist_add_element(&extension_lists.functions, &copy);
                                } else if (!strcasecmp(Z_STRVAL_P(arg1), 
ZEND_EXTENSION_TOKEN)) { /* load Zend extension */
                                        char *extension_name = 
estrndup(Z_STRVAL_P(arg2), Z_STRLEN_P(arg2));
-                                       
+
                                        
zend_llist_add_element(&extension_lists.engine, &extension_name);
                                } else {
                                        zend_hash_update(&configuration_hash, 
Z_STRVAL_P(arg1), Z_STRLEN_P(arg1) + 1, arg2, sizeof(zval), (void **) &entry);
@@ -215,7 +215,7 @@
                                *element = *arg2;
                                zval_copy_ctor(element);
                                INIT_PZVAL(element);
-                               add_next_index_zval(hash, element);             
        
+                               add_next_index_zval(hash, element);
                        }
                        break;
 
@@ -247,7 +247,7 @@
 /* {{{ pvalue_config_destructor
  */
 static void pvalue_config_destructor(zval *pvalue)
-{   
+{
        if (Z_TYPE_P(pvalue) == IS_STRING) {
                free(Z_STRVAL_P(pvalue));
        }
@@ -279,9 +279,9 @@
        }
 
        zend_llist_init(&extension_lists.engine, sizeof(char *), 
(llist_dtor_func_t) free_estring, 1);
-       zend_llist_init(&extension_lists.functions, sizeof(zval), 
(llist_dtor_func_t)  ZVAL_DESTRUCTOR, 1);
+       zend_llist_init(&extension_lists.functions, sizeof(zval), 
(llist_dtor_func_t) ZVAL_DESTRUCTOR, 1);
        zend_llist_init(&scanned_ini_list, sizeof(char *), (llist_dtor_func_t) 
free_estring, 1);
-       
+
        open_basedir = PG(open_basedir);
 
        if (sapi_module.php_ini_path_override) {
@@ -378,7 +378,7 @@
                                }
                        } else if 
(!VCWD_REALPATH(sapi_module.executable_location, binary_location) || 
VCWD_ACCESS(binary_location, X_OK)) {
                                efree(binary_location);
-                               binary_location = NULL;                  
+                               binary_location = NULL;
                        }
                } else {
                        binary_location = NULL;
@@ -386,7 +386,7 @@
 #endif
                if (binary_location) {
                        char *separator_location = strrchr(binary_location, 
DEFAULT_SLASH);
-                       
+
                        if (separator_location && separator_location != 
binary_location) {
                                *(separator_location) = 0;
                        }
@@ -400,7 +400,7 @@
                /* Add default location */
 #ifdef PHP_WIN32
                default_location = (char *) emalloc(MAXPATHLEN + 1);
-       
+
                if (0 < GetWindowsDirectory(default_location, MAXPATHLEN)) {
                        if (*php_ini_search_path) {
                                strlcat(php_ini_search_path, paths_separator, 
search_path_size);
@@ -450,7 +450,7 @@
        if (!sapi_module.php_ini_ignore) {
                if (php_ini_file_name && php_ini_file_name[0]) {
                        struct stat statbuf;
-       
+
                        if (!VCWD_STAT(php_ini_file_name, &statbuf)) {
                                if (!((statbuf.st_mode & S_IFMT) == S_IFDIR)) {
                                        fh.handle.fp = 
VCWD_FOPEN(php_ini_file_name, "r");
@@ -490,10 +490,10 @@
                fh.type = ZEND_HANDLE_FP;
 
                zend_parse_ini_file(&fh, 1, php_config_ini_parser_cb, 
&extension_lists);
-       
+
                {
                        zval tmp;
-               
+
                        Z_STRLEN(tmp) = strlen(fh.filename);
                        Z_STRVAL(tmp) = zend_strndup(fh.filename, 
Z_STRLEN(tmp));
                        Z_TYPE(tmp) = IS_STRING;
@@ -528,7 +528,7 @@
                                                        /* Here, add it to the 
list of ini files read */
                                                        l = strlen(ini_file);
                                                        total_l += l + 2;
-                                                       p = estrndup(ini_file, 
l); 
+                                                       p = estrndup(ini_file, 
l);
                                                        
zend_llist_add_element(&scanned_ini_list, &p);
                                                }
                                        }
@@ -537,7 +537,7 @@
                        }
                        free(namelist);
 
-                       /* 
+                       /*
                         * Don't need an extra byte for the \0 in this malloc 
as the last
                         * element will not get a trailing , which gives us the 
byte for the \0
                         */
@@ -547,7 +547,7 @@
                                for (element = scanned_ini_list.head; element; 
element = element->next) {
                                        strlcat(php_ini_scanned_files, *(char 
**)element->data, total_l);
                                        strlcat(php_ini_scanned_files, 
element->next ? ",\n" : "\n", total_l);
-                               }       
+                               }
                        }
                        zend_llist_destroy(&scanned_ini_list);
                }
@@ -556,7 +556,7 @@
        if (sapi_module.ini_entries) {
                zend_parse_ini_string(sapi_module.ini_entries, 1, 
php_config_ini_parser_cb, &extension_lists);
        }
-       
+
        return SUCCESS;
 }
 /* }}} */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to