]> granicus.if.org Git - php/commitdiff
Cosmetics
authorMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 12 Nov 2002 22:05:18 +0000 (22:05 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 12 Nov 2002 22:05:18 +0000 (22:05 +0000)
ext/mbstring/mbstring.c

index 83d39eadc9c893fd18d47d1844d87ac2e08b12b0..b6f14373bcb7f67336c5bf5d86695b3dd315e5b0 100644 (file)
@@ -910,17 +910,29 @@ PHP_RINIT_FUNCTION(mbstring)
                
                while (p->type > 0) {
                        if ((MBSTRG(func_overload) & p->type) == p->type && 
-                               zend_hash_find(EG(function_table), p->save_func, strlen(p->save_func)+1 , (void **)&orig) != SUCCESS) {
+                               zend_hash_find(EG(function_table), p->save_func,
+                                       strlen(p->save_func)+1, (void **)&orig) != SUCCESS) {
+
                                zend_hash_find(EG(function_table), p->ovld_func, strlen(p->ovld_func)+1 , (void **)&func);
                                
                                if (zend_hash_find(EG(function_table), p->orig_func, 
-                                                                  strlen(p->orig_func)+1, (void **)&orig) != SUCCESS) {
-                                       php_error_docref("ref.mbstring" TSRMLS_CC, E_ERROR, "mbstring couldn't find function %s.", p->orig_func);
+                                               strlen(p->orig_func)+1, (void **)&orig) != SUCCESS) {
+
+                                       php_error_docref("ref.mbstring" TSRMLS_CC, E_ERROR,
+                                               "mbstring couldn't find function %s.", p->orig_func);
+
                                } else {
-                                       zend_hash_add(EG(function_table), p->save_func, strlen(p->save_func)+1, orig, sizeof(zend_function), NULL);
-                                       if (zend_hash_update(EG(function_table), p->orig_func, strlen(p->orig_func)+1,
-                                                                        func, sizeof(zend_function), NULL) == FAILURE){
-                                               php_error_docref("ref.mbstring" TSRMLS_CC, E_ERROR, "mbstring couldn't replace function %s.", p->orig_func);
+
+                                       zend_hash_add(EG(function_table), p->save_func,
+                                               strlen(p->save_func)+1, orig,
+                                               sizeof(zend_function), NULL);
+
+                                       if (zend_hash_update(EG(function_table), p->orig_func,
+                                               strlen(p->orig_func)+1, func, sizeof(zend_function),
+                                               NULL) == FAILURE) {
+
+                                               php_error_docref("ref.mbstring" TSRMLS_CC, E_ERROR,
+                                                       "mbstring couldn't replace function %s.", p->orig_func);
                                        }
                                }
                        }