Doc #75104 [Opn->Csd]: Example #3 Heredoc string quoting example
| From: | cmb@php.net | Date: | Tue, 22 Aug 2017 10:06:52 +0000 |
| Subject: | Doc #75104 [Opn->Csd]: Example #3 Heredoc string quoting example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14903@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75104&edit=1
ID: 75104
Updated by: cmb@php.net
Reported by: jeff at jeffharris dot us
Summary: Example #3 Heredoc string quoting example
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2017-08-22 10:06:19] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=342904
Log: Fix #75104: Example 3 Heredoc string quoting example
Since the manual doesn't apply to PHP 4 anymore, there is no need
to use old-style constructors in general examples.
------------------------------------------------------------------------
[2017-08-22 03:34:16] jeff at jeffharris dot us
Description:
------------
---
From manual page: http://www.php.net/language.types.string
---
The Example #3 uses an old style constructor, which is DEPRECATED in PHP 7.0, This should be
changed, or at least noted that the old style constructors were DEPRECATED in PHP 7.0.
class foo
{
var $foo;
var $bar;
function foo()
{
$this->foo = 'Foo';
$this->bar = array('Bar1', 'Bar2', 'Bar3');
}
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75104&edit=1