php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60063 bug in ltrim
Submitted: 2011-10-14 13:13 UTC Modified: 2011-10-15 14:05 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: paul at around25 dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3SVN-2011-10-14 (SVN) OS: Windows7
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: paul at around25 dot com
New email:
PHP Version: OS:

 

 [2011-10-14 13:13 UTC] paul at around25 dot com
Description:
------------
---
From manual page: http://www.php.net/function.ltrim#refsect1-function.ltrim-description
---


Test script:
---------------
echo ltrim('vlccballard', 'vlc');

Expected result:
----------------
I'm expecting: cballard

Actual result:
--------------
I get as result: ballard

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-14 14:56 UTC] earlchaos at gmail dot com
ltrims second parameter is a list of chars.

http://de3.php.net/manual/en/function.ltrim.php

So as far as i can see, everyhing is fine here.

cheers, Frank
 [2011-10-15 14:05 UTC] cataphract@php.net
-Status: Open +Status: Bogus
 [2011-10-15 14:05 UTC] cataphract@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Expected behavior.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 09:01:32 2025 UTC