#33149 [Opn]: function inet_pton unavailable

From: Date: Thu, 26 May 2005 12:09:11 +0000
Subject: #33149 [Opn]: function inet_pton unavailable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79544@lists.php.net to get a copy of this message
 ID:               33149
 Updated by:       wez@php.net
 Reported By:      h dot warmelink at planet dot nl
 Status:           Open
-Bug Type:         Documentation problem
+Bug Type:         Feature/Change Request
 Operating System: Windows XP
 PHP Version:      5CVS-2005-05-26 (dev)
 New Comment:

Actually, windows doesn't support this right now, but could (requires a
little bit of glue).
Making this a change request--but having accurate docs would be good
too.


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

[2005-05-26 13:29:08] vrana@php.net

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

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

[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


Thread (5 messages)

« previous php.bugs (#79544) next »