Bug #10964 Updated: Unable to use getservbyport function
| From: | derick@php.net | Date: | Sat, 19 May 2001 07:48:13 +0000 |
| Subject: | Bug #10964 Updated: Unable to use getservbyport function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55872@lists.php.net to get a copy of this message | ||
ID: 10964
Updated by: derick
Reported By: xbouli@hotmail.com
Old-Status: Open
Status: Analyzed
Bug Type: Network related
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
I could verify this.
getservbyport is only available if HAVE_SERVBYPORT is defined, but
aparently there are no tests for this function in the configure scripts, and that's why
it's
not set.
Can anybody familiar with the build process have a look at this?
(I can do it later).
Derick
Previous Comments:
---------------------------------------------------------------------------
[2001-05-18 19:27:08] xbouli@hotmail.com
I made a little php script like that :
<?
print getservbyport(25,tcp);
?>
and i got this error:
Fatal error: Call to undefined function: getservbyport()
My configure line is :
./configure --with-ldap --with-mysql --with-gd --disable-pear --enable-calendar
--with-config-file-path=/etc/httpd/conf --with-zlib --with-bz2 --with-snmp --enable-magic-quotes
--with-gnu-ld --with-apxs --with-ttf --without-openssl --enable-ucd-snmp-hack --enable-sockets
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10964&edit=2