]> granicus.if.org Git - php/commitdiff
MFH: cs/ws
authorJani Taskinen <jani@php.net>
Thu, 13 Sep 2007 07:42:12 +0000 (07:42 +0000)
committerJani Taskinen <jani@php.net>
Thu, 13 Sep 2007 07:42:12 +0000 (07:42 +0000)
ext/standard/dl.c

index a1289a80cdd871d156254bc409728d68dc581f86..7b2f5df87f0fbbdade60c52b8324e85eac1d3d0b 100644 (file)
@@ -125,8 +125,8 @@ void php_dl(zval *file, int type, zval *return_value, int start_now TSRMLS_DC)
        if (extension_dir && extension_dir[0]){
                int extension_dir_len = strlen(extension_dir);
 
-               if(type == MODULE_TEMPORARY) {
-                       if(strchr(Z_STRVAL_P(file), '/') != NULL || strchr(Z_STRVAL_P(file), DEFAULT_SLASH) != NULL) {
+               if (type == MODULE_TEMPORARY) {
+                       if (strchr(Z_STRVAL_P(file), '/') != NULL || strchr(Z_STRVAL_P(file), DEFAULT_SLASH) != NULL) {
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Temporary module name should contain only filename");
                                RETURN_FALSE;
                        }
@@ -196,8 +196,9 @@ void php_dl(zval *file, int type, zval *return_value, int start_now TSRMLS_DC)
                        int zend_api;
                        unsigned char zend_debug, zts;
 
-                       if((  ((struct pre_4_1_0_module_entry *)module_entry)->zend_api > 20000000)
-                          &&(((struct pre_4_1_0_module_entry *)module_entry)->zend_api < 20010901)) {
+                       if ((((struct pre_4_1_0_module_entry *)module_entry)->zend_api > 20000000) &&
+                               (((struct pre_4_1_0_module_entry *)module_entry)->zend_api < 20010901)
+                       ) {
                                name       = ((struct pre_4_1_0_module_entry *)module_entry)->name;
                                zend_api   = ((struct pre_4_1_0_module_entry *)module_entry)->zend_api;
                                zend_debug = ((struct pre_4_1_0_module_entry *)module_entry)->zend_debug;