|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-05-22 15:29 UTC] alberty at neptunlabs dot de
ip2long puts under 4.0.6RC1 unsigned integers. now long2ip doesnt work. ./configure \ --with-apxs=/usr/local/apache/current/bin/apxs \ --with-config-file-path=/etc \ --with-openssl=/usr/local/openssl/current \ --enable-sigchild \ --enable-thread-safety \ --disable-short-tags \ --with-bz2 \ --with-curl=/usr/local/curl/current \ --enable-ftp \ --with-mhash=/usr/local/mhash/current \ --with-mysql=/usr/local/mysql/current \ --with-mm=../mm-1.1.3 \ --enable-trans-sid \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --with-zlib \ --with-jpeg-dir=/usr \ --with-png-dir=/usr/local \ --enable-inline-optimization \ --enable-memory-limit \ --enable-shmop \ --with-mcrypt=/usr/local/libmcrypt/current \ --with-recode \ --disable-debug \ --with-gd PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Not a bug at all, this is the correct way to do it: <?php $tmp1="192.168.0.10"; $tmp2=ip2long($tmp1); $tmp3=long2ip($tmp2); printf ("%s - %u - %s", $tmp1, $tmp2, $tmp3); ?>