<?php
-if (function_exists('setlocale')) {
- setlocale(LC_ALL, 'C');
-}
+setlocale(LC_ALL, 'C');
function test($data) {
return strtoupper($data);
--SKIPIF--
<?php
extension_loaded('mbstring') or die('skip mbstring not available');
- if (!function_exists("mail")) {
- die('skip mail() function is not available.');
- }
?>
--INI--
output_handler=
--SKIPIF--
<?php
extension_loaded('mbstring') or die('skip mbstring not available');
- if (!function_exists("mail")) {
- die('skip mail() function is not available.');
- }
if (!function_exists("mb_ereg_replace")) {
die('skip mb_ereg_replace() function is not available.');
}
*/
for ($z = "", $i = 0; $i < 1024; $i++) {
$z .= $i * $i;
- if (function_exists("usleep"))
- usleep($i);
+ usleep($i);
}
$conf = array('config' => dirname(__FILE__) . DIRECTORY_SEPARATOR . 'openssl.cnf');
<?php
-if (function_exists('date_default_timezone_set')) {
- date_default_timezone_set('UTC');
-}
+date_default_timezone_set('UTC');
$manifest = (binary)'';
$glags = 0;
<?php
-if (function_exists('date_default_timezone_set')) {
- date_default_timezone_set('UTC');
-}
+date_default_timezone_set('UTC');
$manifest = (binary)'';
$gflags = 0;
SOAP Interop Round2 base 005 (php/direct): echoString(utf-8)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
-<?php if (!function_exists('utf8_encode')) die('skip utf8_encode() not available'); ?>
--FILE--
<?php
$client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0));
SOAP Interop Round2 base 005 (soap/direct): echoString(utf-8)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
-<?php if (!function_exists('utf8_encode')) die('skip utf8_encode() not available'); ?>
--FILE--
<?php
$client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0));
SOAP Interop Round2 base 005 (php/wsdl): echoString(utf-8)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
-<?php if (!function_exists('utf8_encode')) die('skip utf8_encode() not available'); ?>
--INI--
soap.wsdl_cache_enabled=0
--FILE--
error('environment variable TEST_PHP_EXECUTABLE must be set to specify PHP executable!');
}
- if (function_exists('is_executable') && !is_executable($php)) {
+ if (!is_executable($php)) {
error("invalid PHP executable specified by TEST_PHP_EXECUTABLE = $php");
}
}