Doc #75104 [Csd->ReO]: Example #3 Heredoc string quoting example
| From: | salathe@php.net | Date: | Tue, 22 Aug 2017 11:24:01 +0000 |
| Subject: | Doc #75104 [Csd->ReO]: Example #3 Heredoc string quoting example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14905@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: salathe@php.net
Reported by: jeff at jeffharris dot us
Summary: Example #3 Heredoc string quoting example
-Status: Closed
+Status: Re-Opened
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
There is at least one other occurrence of this (PHP 4-style constructors) on the same page. Would
you mind going over the whole page and addressing them?
Previous Comments:
------------------------------------------------------------------------
[2017-08-22 10:06:48] 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.
------------------------------------------------------------------------
[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