php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #26505 misspelling in http://www.php.net/zend-engine-2.php
Submitted: 2003-12-02 17:18 UTC Modified: 2003-12-03 04:12 UTC
From: patterson at computer dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.0b2 (beta2) OS: RH 9 Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: patterson at computer dot org
New email:
PHP Version: OS:

 

 [2003-12-02 17:18 UTC] patterson at computer dot org
Description:
------------
In the Web page http://www.php.net/zend-engine-2.php in the example 

<?php
class baseClass { }

$a = new baseClass;

if ($a instanceof basicClass) {
   echo "Hello World";
}
?> 

The word "basicClass" should be changed to "baseClass".

Bill

Reproduce code:
---------------
<?php
class baseClass { }

$a = new baseClass;

if ($a instanceof basicClass) {
   echo "Hello World";
}
?> 

Expected result:
----------------
Hello World

Actual result:
--------------
Fatal error: Class 'basicclass' not found in /home/billy/public_html/php5/instanceof.php on line 6

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-03 04:12 UTC] didou@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot 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 in short time.
 
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Sep 13 11:00:01 2025 UTC