Sara Golemon wrote:
Thanks for the pointers, I at least see what I need to be exploring now
(though I havn't sat down to unfold its meaning yet). Cetainly the
implementation given earlier needs work whether its to make it work as
advertised or in the more limited fashion suggested in other posts.
I intend to put some work into it regardless of whether it'll be included or
not. As I mentioned originally, this entire effort was meant as a learning
exercise, and it's doing that job. If it's used: great. If not, it'll just
stay where it is and those who want it can still patch it in.
How does the GOTO implementation handle this
script1.php
<?php
do_some_stuff();
include script2.php;
label:
echo "Hello"
?>
script2.php:
<?php
declare_some_funcs();
.... some code ...
if (some_cond) {
goto label;
}
.... other code....
?>
I think is again local scope because it's in main()
Concise, jumping between files that happen to be included.
thanks,
Andrey
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php