Doc #52702 [Opn->Csd]: [ES] The Documentation of $GLOBALS has an error in example # 1
| From: | yago@php.net | Date: | Wed, 22 Sep 2010 15:49:54 +0000 |
| Subject: | Doc #52702 [Opn->Csd]: [ES] The Documentation of $GLOBALS has an error in example # 1 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5111@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52702&edit=1
ID: 52702
Updated by: yago@php.net
Reported by: kadosh dot ivan at gmail dot com
Summary: [ES] The Documentation of $GLOBALS has an error in
example # 1
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Translation problem
Operating System: Windows
PHP Version: Irrelevant
-Assigned To:
+Assigned To: yago
Block user comment: N
New Comment:
Gracias Ivan Kadosh por reportar este bug.
Los cambios serán publicados el próximo viernes.
Saludos.
Yago
Previous Comments:
------------------------------------------------------------------------
[2010-09-22 17:46:57] yago@php.net
Automatic comment from SVN on behalf of yago
Revision: http://svn.php.net/viewvc/?view=revision&revision=303683
Log: Solved bug #52702
------------------------------------------------------------------------
[2010-08-28 13:46:41] + at ni-po dot com
This ought to be a 'Documentation translation problem', the English
version is correct. (The Spanish one though is not.)
------------------------------------------------------------------------
[2010-08-25 21:33:25] kadosh dot ivan at gmail dot com
Description:
------------
<?php
function test() {
$foo = "variable local";
echo '$foo en el ámbito simple: ' . $GLOBALS["foo"] . "\n";
echo '$foo en el ámbito global: ' . $foo . "\n";
}
$foo = "Contenido de ejemplo";
test();
?>
El resultado del ejemplo serÃa algo similar a:
$foo en el ámbito global: Contenido de ejemplo
$foo en el ámbito simple: variable local
Test script:
---------------
The result is not correct. This confused me for some minutes until I
read very clearly and I realized about the error.
Expected result:
----------------
$foo en el ámbito simple: Contenido de ejemplo
$foo en el ámbito global: variable local
That would be the result according to the function. But according to the
use of
$GLOBALS it should be:
$foo en el ámbito global: Contenido de ejemplo
$foo en el ámbito simple: variable local
Actual result:
--------------
$foo en el ámbito global: Contenido de ejemplo
$foo en el ámbito simple: variable local
I realized that the same documentation but in english is correct.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52702&edit=1