php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10964 Unable to use getservbyport function
Submitted: 2001-05-18 19:27 UTC Modified: 2001-05-19 18:26 UTC
From: xbouli at hotmail dot com Assigned:
Status: Closed Package: Network related
PHP Version: 4.0.5 OS: Linux 2.4.4 RedHat
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: xbouli at hotmail dot com
New email:
PHP Version: OS:

 

 [2001-05-18 19:27 UTC] xbouli at hotmail dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-19 03:48 UTC] derick@php.net
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
 [2001-05-19 18:26 UTC] sniper@php.net
Fixed in CVS. Will be fixed in PHP 4.0.6

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 16:01:31 2025 UTC