Doc #75330 [NEW]: Incorrect word choice

From: Date: Fri, 06 Oct 2017 23:36:32 +0000
Subject: Doc #75330 [NEW]: Incorrect word choice
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15037@lists.php.net to get a copy of this message
From: danielklein at airpost dot net Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Incorrect word choice Description: ------------ --- From manual page: http://www.php.net/function.token-get-all --- Example #3 token_get_all() on a class using a reserved word example <?php $source = <<<'code' <?php class A { const PUBLIC = 1; } code; $tokens = token_get_all($source, TOKEN_PARSE); foreach ($tokens as $token) { if (is_array($token)) { echo token_name($token[0]) , PHP_EOL; } } ?> The above example will output something similar to: T_OPEN_TAG T_WHITESPACE T_CLASS T_WHITESPACE T_STRING T_CONST T_WHITESPACE T_STRING T_LNUMBER Without the TOKEN_PARSE flag, the *penultimate* token (T_STRING) would have been T_PUBLIC. ---- The word "penultimate" is incorrect here. "penultimate" means "second to last", therefore it refers to "A", not "PUBLIC". While "ultimate" is more accurate, the word "last" or "final" would be a better choice here. -- Edit bug report at https://bugs.php.net/bug.php?id=75330&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75330&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75330&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75330&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75330&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75330&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75330&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75330&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75330&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75330&r=support Expected behavior: https://bugs.php.net/fix.php?id=75330&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75330&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75330&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75330&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75330&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75330&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75330&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75330&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75330&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75330&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75330&r=mysqlcfg

« previous php.doc.bugs (#15037) next »