Fixed mismatched file name in example (closes doc #53178)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304943 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Peter Cowburn 2010-10-27 08:16:19 +00:00
parent 11ff354d6e
commit 9e70e6cb39

View file

@ -105,13 +105,13 @@ Number of arguments: 3
test.php
<?php
function foo() {
include './fga.inc';
include './fna.php';
}
foo('First arg', 'Second arg');
?>
fga.php
fna.php
<?php
$num_args = func_num_args();
@ -129,12 +129,12 @@ var_export($num_args);
]]>
</screen>
<para>
Output in PHP 5.3 and later:
Output in PHP 5.3 and later will be something similar to:
</para>
<screen>
<![CDATA[
Warning: func_num_args(): Called from the global scope - no function
context in /home/torben/Desktop/code/ml/fga.inc on line 3
context in /home/torben/Desktop/code/ml/fna.php on line 3
-1
]]>
</screen>