File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
sapi /
cli /
tests /
012.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:35 2012 UTC (12 years, 3 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
--TEST--
invalid arguments and error messages
--SKIPIF--
<?php include "skipif.inc"; ?>
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`"$php" -n -F some.php -F some.php`);
var_dump(`"$php" -n -F some.php -R some.php`);
var_dump(`"$php" -n -R some.php -F some.php`);
var_dump(`"$php" -n -R some.php -R some.php`);
var_dump(`"$php" -n -f some.php -f some.php`);
var_dump(`"$php" -n -B '' -B ''`);
var_dump(`"$php" -n -E '' -E ''`);
var_dump(`"$php" -n -r '' -r ''`);
echo "Done\n";
?>
--EXPECTF--
string(32) "You can use -R or -F only once.
"
string(32) "You can use -R or -F only once.
"
string(32) "You can use -R or -F only once.
"
string(32) "You can use -R or -F only once.
"
string(26) "You can use -f only once.
"
string(26) "You can use -B only once.
"
string(26) "You can use -E only once.
"
string(26) "You can use -r only once.
"
Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>