For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > May 2005 > #33149 [Opn]: function inet_pton unavailable









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #33149 [Opn]: function inet_pton unavailable
vrana@php.net

2005-05-26, 8:57 pm

ID: 33149
Updated by: vrana@php.net
Reported By: h dot warmelink at planet dot nl
Status: Open
Bug Type: Documentation problem
Operating System: Windows XP
PHP Version: 5CVS-2005-05-26 (dev)
New Comment:

They are available in PHP 5.0 too but they are available only if
HAVE_INET_NTOP or HAVE_INET_NTOP is defined.


Previous Comments:
------------------------------------------------------------------------

[2005-05-26 12:14:14] tony2001@php.net

Both inet_pton() and inet_ntop() are available only in HEAD (i.e. PHP
5.1).

------------------------------------------------------------------------

[2005-05-26 12:02:02] h dot warmelink at planet dot nl

Description:
------------
In the last couple of days the documentation on inet_pton has changed.
It now states that PHP5 supports this function, but the function seems
unavailable.
However, the direct use of inet_pton does not result in an error.

Reproduce code:
---------------
if (function_exists('inet_pton')) echo "yes!";
else echo "no...";

Expected result:
----------------
yes!

Actual result:
--------------
no...


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=33149&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com