|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76893 Typos in ".inc" files in "ext/spl/internal"
Submitted: 2018-09-17 00:30 UTC Modified: 2018-09-17 06:09 UTC
From: ejrx7753 at gmail dot com Assigned: nikic (profile)
Status: Closed Package: SPL related
PHP Version: 7.3.0 OS: Irrelevant
Private report: No CVE-ID: None
 [2018-09-17 00:30 UTC] ejrx7753 at gmail dot com
Just to be clear, this is a cosmetic issue with no demonstrated harm, but there are some apparent typos in "ext/spl/internal/" and "ext/spl/internal/".

Typos are of a few categories:
- misnamed methods
- extra colons
- missing colons

I'm not sure what these files are used for exactly, but I ran them as PHP and all of them parse file except for these 4-line exceptions. I'm sure whatever build process if any uses these .inc does not care about theses issues, but these are clearly PHP code files.


--- offsetEsists should be "offsetExists"
--- missing commas at end of "current" and "getInfo"

"function rewind();" is not abstract, but has a colon

Git links: 7.3/ext/spl/internal/

Test script:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-17 00:49 UTC] ejrx7753 at gmail dot com
Additionally, "spl/internal/" CachingIterator::__construct uses two class constants not defined: self::CIT_TOSTRING_USE_KEY and self::CIT_TOSTRING_USE_CURRENT.
 [2018-09-17 02:16 UTC]
We've already dropped the SPL documentation in the master branch:;a=commit;h=9003d8a4, as it was outdated, and the one at should be used instead.

The links you provide were from PHP-7.3 branch, so, I believe this bug can be closed as "Won't fix".
 [2018-09-17 02:55 UTC]
-Type: Bug +Type: Documentation Problem -Operating System: any +Operating System: Irrelevant -PHP Version: 7.2.10 +PHP Version: 7.3.0
 [2018-09-17 06:09 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2018-09-17 06:09 UTC]
Indeed, this issue has been "fixed" by deleting the files in master :)
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Apr 13 05:01:24 2021 UTC