php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68468 [DE] Incorrect capitalisation in example output
Submitted: 2014-11-21 08:30 UTC Modified: 2014-11-22 18:54 UTC
From: address4spam at outlook dot com Assigned: salathe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: ...
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: address4spam at outlook dot com
New email:
PHP Version: OS:

 

 [2014-11-21 08:30 UTC] address4spam at outlook dot com
Description:
------------
False output example.

(German)
http://php.net/manual/de/language.types.string.php

Beispiel #2 Heredoc string quoting example

"My name is "MyName". I am printing some foo.
Now I am printing some Bar2.
This should print a capital 'A': \x41"

foo should be capitalized >> Foo

Test script:
---------------
<?php
$str = <<<EOD
Example of string
spanning multiple lines
using heredoc syntax.
EOD;

/* More complex example, with variables. */
class foo
{
    var $foo;
    var $bar;

    function foo()
    {
        $this->foo = 'Foo';
        $this->bar = array('Bar1', 'Bar2', 'Bar3');
    }
}

$foo = new foo();
$name = 'MyName';

echo <<<EOT
My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should print a capital 'A': \x41
EOT;
?>

Expected result:
----------------
foo should be capitalized >> Foo

Actual result:
--------------
Foo get's described as foo

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-11-22 18:46 UTC] salathe@php.net
-Summary: ... +Summary: Incorrect capitalisation in example output
 [2014-11-22 18:52 UTC] salathe@php.net
-Summary: Incorrect capitalisation in example output +Summary: [DE] Incorrect capitalisation in example output
 [2014-11-22 18:54 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=335207
Log: Fix example output (doc bug #68468)
 [2014-11-22 18:54 UTC] salathe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: salathe
 [2014-11-22 18:54 UTC] salathe@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.


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