mirror of
https://github.com/php/php-src.git
synced 2024-12-22 16:30:02 +08:00
Fix bug #80138
Skip getservbyname() and getservbyport() tests on *nix if there is no /etc/services file. Closes GH-6191.
This commit is contained in:
parent
035ad0aed5
commit
2899137391
@ -5,6 +5,12 @@ Italian PHP TestFest 2009 Cesena 19-20-21 june
|
||||
Fabio Fabbrucci (fabbrucci@grupporetina.com)
|
||||
Michele Orselli (mo@ideato.it)
|
||||
Simone Gentili (sensorario@gmail.com)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
|
||||
if (!file_exists("/etc/services")) die("skip reason: missing /etc/services");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
@ -5,6 +5,12 @@ Italian PHP TestFest 2009 Cesena 19-20-21 june
|
||||
Fabio Fabbrucci (fabbrucci@grupporetina.com)
|
||||
Michele Orselli (mo@ideato.it)
|
||||
Simone Gentili (sensorario@gmail.com)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
|
||||
if (!file_exists("/etc/services")) die("skip reason: missing /etc/services");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
if (file_exists("/etc/services")) {
|
||||
|
@ -7,6 +7,12 @@ Italian PHP TestFest 2009 Cesena 19-20-21 june
|
||||
Fabio Fabbrucci (fabbrucci@grupporetina.com)
|
||||
Michele Orselli (mo@ideato.it)
|
||||
Simone Gentili (sensorario@gmail.com)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
|
||||
if (!file_exists("/etc/services")) die("skip reason: missing /etc/services");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(getservbyport( -1, "tcp" ));
|
||||
|
Loading…
Reference in New Issue
Block a user