Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date Submitted |
---|---|---|---|---|
Mobi | E Tyz Mtnpqvuo | Hello there, |
Anonymous | Feb 28, 2019 |
Printed | Page 126 Example 5-44 |
Example 5-19 shows the proper way to handle confidential credentials; so I have to wonder why Example 5-44 does not follow suit? |
Jim | Jan 28, 2018 |
Printed | Page 97-101 Code at top of page 97; Examples 5-20, 5-21, 5-22, 5-23, 5-24, and 5-25 |
As separately reported for Examples 5-7 & 5-8, filter_input() is missing one or more filter flags. |
Jim Kovacs | Jan 28, 2018 |
Printed | Page 53 Fourth sentence |
Mocked? |
Jim Kovacs | Jan 28, 2018 |
Printed | Page 85 Example 5-8 lines 5 and 8 |
As separately reported for Example 5-7, filter_input() is missing one or more filter flags. |
Jim Kovacs | Jan 28, 2018 |
Printed | Page 84 Lines 17-19 |
Lines 17-19 should be indented four spaces (not three) per PSR-2, 2.4 Indenting. See also 4.6. Method and Function Calls, whose second example indents four spaces. |
Jim Kovacs | Jan 28, 2018 |
Printed | Page 84 Line 10 of Example 5-7 |
Line 10 does not use the optional third parameter ('filter'). In this case, according to the PHP manual: |
Jim Kovacs | Jan 28, 2018 |
Printed | Page 80 Escape Output |
You may want to mention this regarding "specify the appropriate character encoding (usually UTF-8) as the third argument": |
Jim Kovacs | Jan 27, 2018 |
Printed | Page 78 & 79 User Profile Information (p. 78) & Validate Data (p. 79) |
Page 78 mentions filter_var() and filter_input(), and Examples 5-3, 5-4, and 5-5 illustrate filter_var() usage; why did you not include at least one example of filter_input() usage? |
Jim Kovacs | Jan 27, 2018 |
Printed | Page 78 2nd paragraph |
It's incorrect to use "zip code" -- the correct usage is ZIP Codeā¢ (first instance; 'ZIP Code' for subsequent instances). |
Jim Kovacs | Jan 27, 2018 |
Printed | Page 40 Sentence above bullet list |
The sentence above the bullet list uses "five recommendations" while the list consists of six recommendations. |
Jim Kovacs | Jan 27, 2018 |
Printed | Page 77 2nd paragraph |
The text describing Example 5-1 uses "The second argument is the ENT_QUOTES constant, which prompts the function to encode single quotes." when in fact this constant "Will convert both double and single quotes." according to the manual. |
Jim Kovacs | Jan 26, 2018 |
Printed | Page 208 Mentoring |
phpmentoring.org is not what's described under Mentoring. |
Jim Kovacs | Jan 23, 2018 |
Printed | Page 113 Example 5-35 |
Should |
Jim Kovacs | Jan 23, 2018 |
Printed | Page 106 & 107 |
The penultimate paragraph on page 106 uses http: for the URL while the first paragraph under Stream Wrappers on page 107 uses https:. |
Jim Kovacs | Jan 23, 2018 |
Printed | Page 102 & 103 Examples 5-26 & 5-27 |
Example 5-19 on page 96 uses include('../settings.php') while examples 5-26 & 5-27 use require 'settings.php'. |
Jim Kovacs | Jan 23, 2018 |
Printed | Page 65 Paragraph preceding Note |
I made a mistake; disregard my previous submission because the book is correct.as-is regarding Composer's global credentials being saved in %APPDATA%/Composer. |
Jim Kovacs | Jan 22, 2018 |
Printed | Page 65 Paragraph preceding Note |
Using Composer version 1.6.2 2018-01-05 for Windows, global credentials are saved in %APPDATA%/ComposerSetup |
Jim Kovacs | Jan 22, 2018 |
Printed | Page 62 composer commands |
Using Composer version 1.6.2 2018-01-05 for Windows, the two composer commands shown on page 62 must not have the trailing semicolon; otherwise composer issues an InvalidArgumentException: |
Jim Kovacs | Jan 22, 2018 |
Other Digital Version | Code Code |
The answer to my previous question was found on page 42: PSR-2 Strict Code Style "must not include a trailing ?> PHP tag." |
Jim Kovacs | Jan 21, 2018 |
Other Digital Version | Code Code |
Why is the closing ?> tag absent from the PHP files included in the book's downloadable code? (The opening <?php is present, but not the closing ?> tag.) |
Jim Kovacs | Jan 21, 2018 |
Printed | Page 22 Example 2-15 |
2016-02-26 edition of book uses "simpleGenerator" as the name of the function whereas the first bit of code on page 23 uses "myGenerator", as does the code available for download (modern-php-master\02-features\generators\simple-generator.php) |
Jim Kovacs | Jan 21, 2018 |