Doc #75104 [ReO->Csd]: Example #3 Heredoc string quoting example

From: Date: Tue, 22 Aug 2017 12:47:42 +0000
Subject: Doc #75104 [ReO->Csd]: Example #3 Heredoc string quoting example
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14907@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: Re-Opened +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Assigned To: cmb Block user comment: N Private report: N New Comment: Thanks, Peter. It seems that there was only one other old-style constructor (example 7). Previous Comments: ------------------------------------------------------------------------ [2017-08-22 12:46:25] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=342905 Log: Fix #75104: yet another old-style constructor ------------------------------------------------------------------------ [2017-08-22 11:24:00] salathe@php.net 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? ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#14907) next »