svn: /phpdoc/en/trunk/reference/funchand/functions/ func-num-args.xml
| From: | Peter Cowburn | Date: | Wed, 27 Oct 2010 08:16:19 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/funchand/functions/ func-num-args.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7349@lists.php.net to get a copy of this message | ||
salathe Wed, 27 Oct 2010 08:16:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=304943
Log:
Fixed mismatched file name in example (closes doc #53178)
Bug: http://bugs.php.net/53178 (Open) Example #2
func_num_args() example before and after PHP 5.3
Changed paths:
U phpdoc/en/trunk/reference/funchand/functions/func-num-args.xml
Modified: phpdoc/en/trunk/reference/funchand/functions/func-num-args.xml
===================================================================
--- phpdoc/en/trunk/reference/funchand/functions/func-num-args.xml 2010-10-27 08:03:48 UTC (rev
304942)
+++ phpdoc/en/trunk/reference/funchand/functions/func-num-args.xml 2010-10-27 08:16:19 UTC (rev
304943)
@@ -105,13 +105,13 @@
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 @@
]]>
</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>