Is there a major flaw with PHPs variable handling, in 4.3.11?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mydejamail@yahoo.co.uk

    Is there a major flaw with PHPs variable handling, in 4.3.11?


    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.


    My deja

  • Oli Filth

    #2
    Re: Is there a major flaw with PHPs variable handling, in 4.3.11?

    mydejamail@yaho o.co.uk wrote:[color=blue]
    > 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.
    >[/color]

    This sounds like it could be related to the reference problem:
    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


    Dunno about the loop problem, do you have some example code?

    --
    Oli

    Comment

    • Chung Leong

      #3
      Re: Is there a major flaw with PHPs variable handling, in 4.3.11?

      Post some sample code.

      Comment

      • Wayne

        #4
        Re: Is there a major flaw with PHPs variable handling, in 4.3.11?

        On 15 Nov 2005 07:01:16 -0800, mydejamail@yaho o.co.uk wrote:
        [color=blue]
        >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.[/color]

        There shouldn't be anything hosed about 4.3.11 in the general case.
        As other's have suggested, post some code and we'll see what we can do
        about it.

        Comment

        Working...