#39535 [Opn->Fbk]: function not passing global'ed variables
| From: | tony2001@php.net | Date: | Thu, 16 Nov 2006 16:24:54 +0000 |
| Subject: | #39535 [Opn->Fbk]: function not passing global'ed variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105109@lists.php.net to get a copy of this message | ||
ID: 39535
Updated by: tony2001@php.net
Reported By: mark at divinedesigns dot ca
-Status: Open
+Status: Feedback
Bug Type: Variables related
Operating System: linux
PHP Version: 5.2.0
New Comment:
Please provide SHORT but COMPLETE reproduce code. Some comments in the
code with expected and actual results are appreciated.
Previous Comments:
------------------------------------------------------------------------
[2006-11-16 16:14:54] mark at divinedesigns dot ca
my source code is shown on these two webpages
http://taith.divinedesigns.ca/bug.php
http://taith.divinedesigns.ca/bug2.php
------------------------------------------------------------------------
[2006-11-16 16:10:49] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2006-11-16 16:01:48] mark at divinedesigns dot ca
Description:
------------
basically...
function2 is in function1, function 2 has a globalized variable, but
it is not passing out of funcion 1 or 2, if i set it to echo the
variable, info comes out, but thats not very helpful...
Reproduce code:
---------------
i'll put it at taith.divinedesigns.ca/bug.php,
taith.divinedesigns.ca/bug2.php
Expected result:
----------------
the +/- buttons are supposed to click on(javascript) and hide/show the
contents underneath
Actual result:
--------------
no action, the $head variable doesnt pass from function #1 to function
#2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39535&edit=1