php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17929 ZEND_CHANGES.txt Typo
Submitted: 2002-06-23 03:00 UTC Modified: 2002-06-23 06:50 UTC
From: ben at dubuque365 dot com Assigned:
Status: Closed Package: Website problem
PHP Version: 4.2.1 OS: n/a
Private report: No CVE-ID: None
 [2002-06-23 03:00 UTC] ben at dubuque365 dot com
I sent this to webmaster@php.net a couple weeks ago when I probably should have sent it here.

In ZEND_CHANGES.txt [which talks about the zend 2 engine, linked from the front page] on line 218;

"The following code prints "foobar", not "foo", because..."

probably should be

"The following code prints "foobar", not "bar", because..."

OR you could change line 223 from

define('foo', 'bar');

to

define('foo', 'foo');

Also on line 256... I'm not sure I understand, but wouldn't the example print "foobar" four times instead of just two? What I'm getting is that the engine searches for the "bar" function in that class's namespace before it searches the instantiating namespace, so calling "$this->bar()" in this case has the same effect as calling "bar()"?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-23 06:50 UTC] sander@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 18:01:34 2024 UTC