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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Sep 18 20:00:01 2025 UTC