Upgrading to PHP 5 by Adam Trachtenberg This errata page lists errors outstanding in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated March 27, 2007. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification Confirmed errors: {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. {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. {18} 1st code example; sendEmailTo($rasmus) should be sendEmailTo($rasmus2) (23) in the class Database; function database($host, $user, $password); should be: function Database($host, $user, $password); (24) Bottom of the page, in code block; class database { should be: class Database { (25) First sentence; "...there's no need for use register_shutdown_function()" should be: "...there's no need to use register_shutdown_function()" (26) 3rd paragraph; "PHP will still find a the class definition." should probably be: "PHP will still find the class definition." {35} 10 lines from bottom; $area = math::pi * radius * raidus; should be $area = math::pi * radius * radius; (137) first code block ending with "$email = $xpath....."; First code block should end with: $emails = $xpath->query..... "$emails" instead of "$email" [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). {242} Example 9-4; Currently the code block ends with: } (SOAPFault $exception) { print $exception; } This should be } catch (SOAPFault $exception) { print $exception; }