Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/standard/tests/file/open_basedir_cwd_resolve.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ var_dump(file_get_contents('/some/path/outside/open/basedir'));
--EXPECTF--
Warning: file_get_contents(): open_basedir restriction in effect. File(/some/path/outside/open/basedir) is not within the allowed path(s): (%s) in %s on line %d

Warning: file_get_contents(): Failed to open stream: %r(Operation not permitted|Insufficient privileges)%r in %s on line %d
Warning: file_get_contents(): Failed to open stream: %r(Operation not permitted|Insufficient privileges|Not owner)%r in %s on line %d
bool(false)
4 changes: 2 additions & 2 deletions ext/standard/tests/file/realpath_bug77484.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Bug #77484 Zend engine crashes when calling realpath in invalid working dir
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN' || PHP_OS_FAMILY === 'Solaris') {
die("skip can't remove CWD on Windows or Solaris");
if (substr(PHP_OS, 0, 3) == 'WIN' || PHP_OS_FAMILY === 'Solaris' || PHP_OS_FAMILY == "AIX") {
die("skip can't remove CWD on Windows, Solaris, or AIX");
}
if (PHP_ZTS) {
/* TODO eliminate difference in TS build. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Simone Gentili (sensorario@gmail.com)
if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
if (!file_exists("/etc/services")) die("skip reason: missing /etc/services");
}
if (PHP_OS_FAMILY === 'Solaris') {
die("skip Solaris has incomplete /etc/services");
if (PHP_OS_FAMILY === 'Solaris' || PHP_OS == 'OS400') {
die("skip Solaris and IBM i have incomplete /etc/services");
}
if (getenv('SKIP_MSAN')) die('skip msan missing interceptor for getservbyname()');
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Michele Orselli (mo@ideato.it)
Simone Gentili (sensorario@gmail.com)
--SKIPIF--
<?php
if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
if(in_array(PHP_OS_FAMILY, ['AIX', 'BSD', 'Darwin', 'Solaris', 'Linux'])){
if (!file_exists("/etc/services")) die("skip reason: missing /etc/services");
}
if (getenv('SKIP_MSAN')) die('skip msan missing interceptor for getservbyport()');
Expand Down
4 changes: 3 additions & 1 deletion ext/standard/tests/general_functions/proc_nice_basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ Simone Gentili (sensorario@gmail.com)
<?php
if(!function_exists('proc_nice')) die("skip. proc_nice not available ");
if(substr(strtoupper(PHP_OS), 0, 3) == 'WIN') die('skip. not for Windows');
if(PHP_OS_FAMILY === 'Solaris') die('skip Solaris has different nice levels');
if(PHP_OS_FAMILY === 'Solaris' || PHP_OS_FAMILY == "AIX") {
die('skip System V has different nice levels');
}
exec('ps -p 1 -o "pid,nice"', $output, $exit_code);
if ($exit_code !== 0) {
die("skip ps -p is not available");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Simone Gentili (sensorario@gmail.com)
--SKIPIF--
<?php
if(!function_exists('proc_nice')) die("skip. proc_nice not available ");

if (PHP_OS == "OS400") {
die("skip: IBM i requires special authority to set niceness");
}
?>
--FILE--
<?php
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/streams/glob-wrapper.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ foreach ( [ __DIR__, "glob://".__DIR__ ] as $spec) {

Warning: opendir(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (/does_not_exist) in %s%eglob-wrapper.php on line 5

Warning: opendir(): Failed to open directory: %r(Operation not permitted|Insufficient privileges)%r in %s%eglob-wrapper.php on line 5
Warning: opendir(): Failed to open directory: %r(Operation not permitted|Insufficient privileges|Not owner)%r in %s%eglob-wrapper.php on line 5
Failed to open %s
** Opening glob://%s
No files in glob://%s
6 changes: 6 additions & 0 deletions ext/standard/tests/strings/setlocale_variation2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ echo "-- Test setlocale() with all available locale in the system --\n";
// gather all locales installed in the system(stored $all_system_locales),
// try n set each locale using setlocale() and keep track failures, if any
foreach($all_system_locales as $value){
if (PHP_OS == 'OS400' && str_ends_with($value, ".o")) {
// HACK: At least PASE returns locales in "locale -a" that segfault if
// loaded; skip them. Bump success count since it's expected at end.
$success_count++;
continue;
}
//set locale to $value, if success, count increments
if(setlocale(LC_ALL,$value )){
$success_count++;
Expand Down
Loading