Skip to content

Commit

Permalink
fixed skipif to really skip
Browse files Browse the repository at this point in the history
  • Loading branch information
foobar committed Jul 20, 2005
1 parent bf75124 commit dd3d739
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pear/tests/pear_dependency_checkExtension.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ PEAR_Dependency::checkExtension() test
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
exit;
}
if (!ini_get('enable_dl') || ini_get('safe_mode')) {
echo 'skip';
exit;
}

require_once 'System.php';

$dir = ini_get('extension_dir');
if (OS_WINDOWS) {
$suffix = '.dll';
Expand Down Expand Up @@ -50,6 +54,7 @@ foreach ($extensions as $ext) {
}
if (!$notloaded || !$loaded) {
echo 'skip';
exit;
}
?>
--FILE--
Expand Down

0 comments on commit dd3d739

Please sign in to comment.