summaryrefslogtreecommitdiff
path: root/tests/lang/func_get_arg.001.phpt
diff options
context:
space:
mode:
authorAnt Phillips <ant@php.net>2008-11-28 10:42:21 +0000
committerAnt Phillips <ant@php.net>2008-11-28 10:42:21 +0000
commit54fe78081755f1eeebc1b08b929fbf5f3452cc32 (patch)
tree72dce5b0f8af814ad573fc974bed285f38046136 /tests/lang/func_get_arg.001.phpt
parent18237ba8e327426314435fbf6446fe74df108600 (diff)
downloadphp-git-54fe78081755f1eeebc1b08b929fbf5f3452cc32.tar.gz
Language tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit).
Diffstat (limited to 'tests/lang/func_get_arg.001.phpt')
-rw-r--r--tests/lang/func_get_arg.001.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lang/func_get_arg.001.phpt b/tests/lang/func_get_arg.001.phpt
new file mode 100644
index 0000000000..b1bbb18699
--- /dev/null
+++ b/tests/lang/func_get_arg.001.phpt
@@ -0,0 +1,15 @@
+--TEST--
+func_get_arg test
+--FILE--
+<?php
+
+function foo($a)
+{
+ $a=5;
+ echo func_get_arg(0);
+}
+foo(2);
+echo "\n";
+?>
+--EXPECT--
+2 \ No newline at end of file