Topic: How does the extension system handle the same variable name
I am reading the code of the extension system, and a question pops-up, hope someone could help me out.
consider the following code
<?php
//hook place 1
//e.g. extension1 code will be place here
$myvar = 1;
/******some other php codes*************/
//hook place 2
//another extension using the same var name
$myvar = "that's bad";
/******some other php codes*************/
//hook place 3
//extension1 will use the $myvar
if ($myvar===1) //do something
?>
as you can see, it might create conflicts if there are vars using same name, i don't know if the 1.3 has already handled this, if yes, how? if no, hope we can avoid this problem then. Thanks. PunBB is really a fantastic application! I love it!