php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71107 Some document problems
Submitted: 2015-12-13 08:23 UTC Modified: 2015-12-18 17:24 UTC
From: laruence@php.net Assigned: tpunt (profile)
Status: Closed Package: Documentation problem
PHP Version: 7.0.0 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: laruence@php.net
New email:
PHP Version: OS:

 

 [2015-12-13 08:23 UTC] laruence@php.net
Description:
------------
I wrote a scritp when I try to fixed problem reported in #71053

anyway, the idea is simple, the script parsed the doc declaration in phpdoc

then call the function as the declaration in strict_types, 

then some doc problems showup:

//php7 require 6 parameters , but doc said 7
mktime() expects at most 6 parameters, 7 given
gmmktime() expects at most 6 parameters, 7 given

//php7 require bool , but doc said string
ignore_user_abort() expects parameter 1 to be boolean, string given
stream_set_blocking() expects parameter 2 to be boolean, integer given


Test script:
---------------
non

Expected result:
----------------
none

Actual result:
--------------
none

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-18 17:18 UTC] tpunt@php.net
-Assigned To: +Assigned To: tpunt
 [2015-12-18 17:21 UTC] tpunt@php.net
Automatic comment from SVN on behalf of tpunt
Revision: http://svn.php.net/viewvc/?view=revision&revision=338301
Log: Fixes bug #71107
 [2015-12-18 17:24 UTC] tpunt@php.net
The mktime() and gmmktime() functions have marked the parameter as removed. It's still referenced in the documentation for 5.x users.

The ignore_user_abort() and stream_set_blocking() functions have been rectified with the following commit: https://svn.php.net/viewvc/?view=revision&revision=338301
 [2015-12-18 17:24 UTC] tpunt@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC