]> granicus.if.org Git - php/commitdiff
Make chop the alias and rtrim the main function, in order to get automagically
authorJeroen van Wolffelaar <jeroen@php.net>
Sun, 23 Sep 2001 18:32:46 +0000 (18:32 +0000)
committerJeroen van Wolffelaar <jeroen@php.net>
Sun, 23 Sep 2001 18:32:46 +0000 (18:32 +0000)
generated alias-listings correct.

ext/cybercash/cyberlib.php
ext/standard/basic_functions.c
ext/standard/php_string.h
ext/standard/string.c

index 0b262363921ab7f6580a712ef06d4bd773117ce4..fa183ff93b58d6a434d0a02f311d6cfaf1cfa648 100644 (file)
@@ -36,7 +36,7 @@
    $more=list($key,$val)=each($CCNVList);
    while(!$done)
    {
-     $pairs.=chop($key)."=".urlencode(chop($val));
+     $pairs.=rtrim($key)."=".urlencode(rtrim($val));
      
      $more=list($key,$val)=each($CCNVList);
      if($more)
index 8c6cdf8d0e59cfc5eeebc1859242653293bce6a2..ef2fc7ca074085b844dce8ad8f85fbae5e732306 100644 (file)
@@ -333,7 +333,7 @@ function_entry basic_functions[] = {
        PHP_FE(strtr,                                                                                                                   NULL)
        PHP_FE(addslashes,                                                                                                              NULL)
        PHP_FE(addcslashes,                                                                                                             NULL)
-       PHP_FE(chop,                                                                                                                    NULL)
+       PHP_FE(rtrim,                                                                                                                   NULL)
        PHP_FE(str_replace,                                                                                                             NULL)
        PHP_FE(str_repeat,                                                                                                              NULL)
        PHP_FE(count_chars,                                                                                                             NULL)
@@ -359,7 +359,7 @@ function_entry basic_functions[] = {
        PHP_FE(ord,                                                                                                                             NULL)
        PHP_FE(parse_str,                               second_arg_force_ref)
        PHP_FE(str_pad,                                                                                                                 NULL)
-       PHP_FALIAS(rtrim,                               chop,                                                                   NULL)
+       PHP_FALIAS(chop,                                rtrim,                                                                  NULL)
        PHP_FALIAS(strchr,                              strstr,                                                                 NULL)
        PHP_NAMED_FE(sprintf,                   PHP_FN(user_sprintf),                                   NULL)
        PHP_NAMED_FE(printf,                    PHP_FN(user_printf),                                    NULL)
index 8bf3e30eb150d4f11597f9fe622fc952e623a19b..93fa8691c4cf4842389fe5b25f8b0cb0effd0098 100644 (file)
@@ -27,7 +27,7 @@
 PHP_FUNCTION(strspn);
 PHP_FUNCTION(strcspn);
 PHP_FUNCTION(str_replace);
-PHP_FUNCTION(chop);
+PHP_FUNCTION(rtrim);
 PHP_FUNCTION(trim);
 PHP_FUNCTION(ltrim);
 PHP_FUNCTION(soundex);
index a85926674ec6bb144cbf23853da4ed2767f6c8d6..30302c05c1d1232f8d6c47f85ca7d3fe5bf85ce1 100644 (file)
@@ -540,13 +540,13 @@ PHPAPI void php_trim2(zval **str, zval **what, zval *return_value, int mode TSRM
 }
 /* }}} */
 
-/* {{{ proto string rtrim(string str [, string character_mask])
-   An alias for chop */
+/* {{{ proto string chop(string str [, string character_mask])
+   An alias for rtrim */
 /* }}} */
 
-/* {{{ proto string chop(string str [, string character_mask])
+/* {{{ proto string rtrim(string str [, string character_mask])
    Removes trailing whitespace */
-PHP_FUNCTION(chop)
+PHP_FUNCTION(rtrim)
 {
        zval **str;
        zval **what = NULL;