Errata

PHP Cookbook

Errata for PHP Cookbook

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 "Date 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 Note Update

Version Location Description Submitted By Date submitted Date corrected
Page page 8
Example 1-5

// Extracting and naming only the city should be revise to // Extracting and naming only the state ?

Note from the Author or Editor:
This was a typo called out by other reviewers and will be corrected.

sophia  Nov 27, 2023 
Printed
Page page 53
1st paragraph

oreil.ly/-a4l[_currying]
The link is not avaialbe .

Note from the Author or Editor:
This link should work: oreil.ly/-_a4l

There is a formatting mishap where it's picking up extra content. Now fixed in source files.

Sophia  Nov 27, 2023 
Page 62
2nd paragraph

leading backspaces should be revise to leading backslash ?

Note from the Author or Editor:
"backspaces" should be "backslashes"

Sophia  Nov 27, 2023 
Page 118
2nd paragraph

number 4
:add() should be revise to ::add() ?

Note from the Author or Editor:
The correct reference to the function would be +::add()+

Sophia  Nov 27, 2023 
Printed
Page 277
5th paragraph

restore_exception_​han⁠dler() (oreil.ly/TOEuz).
should be revise to
restore_exception_handler() (oreil.ly/TOEuz) ?

Note from the Author or Editor:
Correct, this was a formatting error, and is now fixed in the source files.

Sophia  Nov 27, 2023 
Page 349
2nd paragraph

oreil.ly/_6—V
The link is not available

Note from the Author or Editor:
This appears to the a formatting issue when the text was rendered. The URL should be https://oreil.ly/_6--V but it seems the double hyphen is being converted to (both in print and digital) an m-dash.

Sophia  Nov 27, 2023 
Page 375
Example 17-3

1. This book did not provide the code resource, so it can not operate Example 17-3.

2.
In Example 17-2, package used “amphp/amp” and the version is 2.6.2 (current version is 3.0.0)

Running the example with 3.0.0, an error occurred.
Therefore, before executing Example 17-2, the reader needs to install “composer require amphp/amp:2.6.2“

Note from the Author or Editor:
This is a valid call out. Version 3.0 was released while the final manuscript was under editorial review.

Sophia  Nov 27, 2023