php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4748 ucwords() doesn't handle \n
Submitted: 2000-06-01 10:32 UTC Modified: 2000-06-01 11:58 UTC
From: martin dot storsjo at pp dot qnet dot fi Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.0 Release OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
22 + 45 = ?
Subscribe to this entry?

 
 [2000-06-01 10:32 UTC] martin dot storsjo at pp dot qnet dot fi
echo ucwords("\nhello world");

gives:
hello World

not:
Hello World

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-01 11:58 UTC] hholzgra at cvs dot php dot net
beginning with latest cvs, it will check
against isspace() instead of just ==" "
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 11:01:32 2024 UTC