]> granicus.if.org Git - php/commitdiff
Sync with php_trim() API change.
authorSebastian Bergmann <sebastian@php.net>
Wed, 16 Aug 2006 08:51:34 +0000 (08:51 +0000)
committerSebastian Bergmann <sebastian@php.net>
Wed, 16 Aug 2006 08:51:34 +0000 (08:51 +0000)
ext/simplexml/simplexml.c
ext/standard/http_fopen_wrapper.c

index d345b1185684f1afe9e0a865cf1407a08db5a4e9..6c8f6422cff65b597a86c291863e4ff66ba26ffa 100644 (file)
@@ -453,7 +453,7 @@ static void sxe_prop_dim_write(zval *object, zval *member, zval *value, zend_boo
                        trim_zv = *member;
                        zval_copy_ctor(&trim_zv);
                        convert_to_string_with_converter(&trim_zv, UG(utf8_conv));
-                       php_trim(Z_STRVAL(trim_zv), Z_STRLEN(trim_zv), NULL, 0, IS_STRING, &tmp_zv, 3 TSRMLS_CC);
+                       php_trim(Z_STRVAL(trim_zv), Z_STRLEN(trim_zv), NULL, 0, &tmp_zv, 3 TSRMLS_CC);
                        zval_dtor(&trim_zv);
                        member = &tmp_zv;
                }
index 935f6119edcec9b0d27053fae12631b34ebb7482..8376ee81ce51c2e23c107611be8c9e3eb2e83fe9 100644 (file)
@@ -350,7 +350,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
                Z_TYPE_PP(tmpzval) == IS_STRING && Z_STRLEN_PP(tmpzval)) {
                /* Remove newlines and spaces from start and end,
                   php_trim will estrndup() */
-               tmp = php_trim(Z_STRVAL_PP(tmpzval), Z_STRLEN_PP(tmpzval), NULL, 0, IS_STRING, NULL, 3 TSRMLS_CC);
+               tmp = php_trim(Z_STRVAL_PP(tmpzval), Z_STRLEN_PP(tmpzval), NULL, 0, NULL, 3 TSRMLS_CC);
                if (strlen(tmp) > 0) {
                        if (!header_init) { /* Remove post headers for redirects */
                                int l = strlen(tmp);
@@ -376,7 +376,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
                                        }
                                }
                                efree(tmp_c);
-                               tmp_c = php_trim(tmp, strlen(tmp), NULL, 0, IS_STRING, NULL, 3 TSRMLS_CC);
+                               tmp_c = php_trim(tmp, strlen(tmp), NULL, 0, NULL, 3 TSRMLS_CC);
                                efree(tmp);
                                tmp = tmp_c;
                        }