Errata


Print Print Icon

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question



Version Location Description Submitted By Corrected
Printed Page 9
1st and 2nd code examples

After querying the database, you try to fetch an associative array from the query
result in $r instead of $result.

Anonymous 
Printed Page 16
2nd code example

When demonstrating pass-by-reference, you call the Person class' setName() method as
a function in the global name space. You should be calling the editName() method
instead.

Anonymous 
Printed Page 18
1st code example

sendEmailTo($rasmus) should be sendEmailTo($rasmus2)

Anonymous 
Printed Page 23
in the class Database

function database($host, $user, $password);
should be:
function Database($host, $user, $password);

Anonymous 
Printed Page 24
Bottom of the page, in code block

class database {
should be:
class Database {

Anonymous 
Printed Page 25
First sentence

"...there's no need for use register_shutdown_function()"
should be:
"...there's no need to use register_shutdown_function()"

Anonymous 
Printed Page 26
3rd paragraph

"PHP will still find a the class definition."
should probably be:
"PHP will still find the class definition."

Anonymous 
Printed Page 35
10 lines from bottom

$area = math::pi * radius * raidus;
should be
$area = math::pi * radius * radius;

Anonymous 
Printed Page 137
first code block ending with "$email = $xpath....."

First code block should end with:
$emails = $xpath->query.....

"$emails" instead of "$email"

Anonymous 
Printed Page 146
Table 5-3

The text in Example 5-21 on pg 147 illustrates that the
PHP 5 class node-creation function for 'Attribute' nodes
should be 'new DOMAttr()' (not 'new DOMAttribute()' as
shown in Table 5-3).

Anonymous 
Printed Page 242
Example 9-4

Currently the code block ends with:

} (SOAPFault $exception) {
print $exception;
}

This should be
} catch (SOAPFault $exception) {
print $exception;
}

Anonymous