php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65017 Wrong parameter type in long2ip() online documentation
Submitted: 2013-06-12 08:27 UTC Modified: 2013-06-12 19:38 UTC
From: ugbx017ex3ue at fakeimg dot fr Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 9 = ?
Subscribe to this entry?

 
 [2013-06-12 08:27 UTC] ugbx017ex3ue at fakeimg dot fr
Description:
------------
---
From manual page: http://www.php.net/function.long2ip#refsect1-function.long2ip-description
---

$proper_address parameter is not of type string, should be int.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-12 19:38 UTC] aharvey@php.net
-Status: Open +Status: Not a bug
 [2013-06-12 19:38 UTC] aharvey@php.net
The documentation is correct there: long2ip() does expect a string, although 
PHP's internal type juggling means that integers work as well, obviously.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 07:01:28 2024 UTC