php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73798 Badly worded example output
Submitted: 2016-12-21 10:41 UTC Modified: 2017-01-07 14:58 UTC
From: f dot meurer at meurologic dot de Assigned: cmb (profile)
Status: Closed Package: Unknown/Other Function
PHP Version: 5.6.29 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: f dot meurer at meurologic dot de
New email:
PHP Version: OS:

 

 [2016-12-21 10:41 UTC] f dot meurer at meurologic dot de
Description:
------------
---
From manual page: http://www.php.net/function.ctype-space
---

There is an error in the docu in the example.

http://php.net/manual/de/function.ctype-space.php

'string3' => '\n\r\t' should show 'The string 'string3' consists of all whitespace characters.'




Expected result:
----------------
'string3' => '\n\r\t' should show 'The string 'string3' consists of all whitespace characters.'




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-21 11:38 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: Variables related
 [2016-12-21 11:38 UTC] cmb@php.net
Well, the example is basically correct, see
<https://3v4l.org/ne0au>. Note that $string3 is assigned a
*single*-quoted string literal.

However, in my opinion the wording of the example's output needs
improvement.
 [2016-12-21 11:39 UTC] cmb@php.net
-Summary: Error in the documentation +Summary: Badly worded example output
 [2016-12-21 11:54 UTC] f dot meurer at meurologic dot de
-Status: Verified +Status: Closed
 [2016-12-21 11:54 UTC] f dot meurer at meurologic dot de
Right, did not look at the quotes cause i didn't expect that.
 [2016-12-21 14:18 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2016-12-21 14:19 UTC] cmb@php.net
-Status: Closed +Status: Re-Opened
 [2016-12-21 14:19 UTC] cmb@php.net
Still, the example should be improved.
 [2017-01-07 14:56 UTC] cmb@php.net
-Status: Re-Opened +Status: Verified -Package: Variables related +Package: Unknown/Other Function
 [2017-01-07 14:58 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=341619
Log: Fix #73798: Badly worded example output
 [2017-01-07 14:58 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2017-01-07 14:58 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=35ec2791cb7076bbcba836ee97e03b93c51d83ff
Log: Fix #73798: Badly worded example output
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 10:01:29 2024 UTC