php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #46825 chop
Submitted: 2008-12-10 17:14 UTC Modified: 2008-12-10 17:35 UTC
From: victor at locomotiv dot com dot br Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: victor at locomotiv dot com dot br
New email:
PHP Version: OS:

 

 [2008-12-10 17:14 UTC] victor at locomotiv dot com dot br
Description:
------------
about chop function documentation

Reproduce code:
---------------
chop function is wrong in documentation.

It's not an alias for rtrim(), it removes double spaces of a string instead of remore the right space of a string.

Thanks.

Expected result:
----------------
chop function is wrong in documentation.

It's not an alias for rtrim(), it removes double spaces of a string instead of remore the right space of a string.

Thanks.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-10 17:35 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The docs are just fine, you're wrong. THe code says:

basic_functions.c:	PHP_FALIAS(chop,				rtrim,	arginfo_rtrim)

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 15:00:02 2026 UTC