php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70673 Wrong Parameter Info for SplFileInfo::__construct()
Submitted: 2015-10-08 18:21 UTC Modified: 2015-10-12 09:41 UTC
From: lukasl dot com at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.5.30 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lukasl dot com at gmail dot com
New email:
PHP Version: OS:

 

 [2015-10-08 18:21 UTC] lukasl dot com at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/splfileinfo.construct
---

Documentation says:

public SplFileInfo::__construct ( string $file_name )


Expected result:
----------------
Documentation should say:

public SplFileInfo::__construct ($filename, $open_mode = "r", $use_include_path = false, $context = null)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-09 18:46 UTC] salathe@php.net
-Status: Open +Status: Not a bug
 [2015-10-09 18:46 UTC] salathe@php.net
You are confusing SplFileInfo with SplFileObject.
 [2015-10-12 09:41 UTC] lukasl dot com at gmail dot com
Yes, you're right. Sorry about that.
I clicked on the __construct() link in the /* Inherited methods */ section (didn't notice the real __construct() link under "Table of Contents"

This is the correct page for it and I see it's documented correctly.

http://php.net/manual/en/splfileobject.construct.php

Thanks for checking into this. My bad.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC