|
Posted by Oli Filth on 11/15/05 17:11
mydejamail@yahoo.co.uk wrote:
> Is there a major flaw with PHPs variable handling? I am writing some
> PHP scripts and the variables seem to be all over the place.
>
> Eg in one instance, I am counting the number of times a for loop gets
> executed. When I force termination the loop count is always set to the
> maximum. When I copy the loops current value to a different one, that
> variables value also gets changed.
>
> Some procedures don't work when I pass some variables by reference, so
> I have to make the variables global to ensure proper output.
>
> The version of PHP I am using is 4.3.11 and I wonder if its variable
> handling is totally hosed. It is proving very frustrating.
>
This sounds like it could be related to the reference problem:
http://www.php.net/release_4_4_0.php
Dunno about the loop problem, do you have some example code?
--
Oli
Navigation:
[Reply to this message]
|