The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP4.3.11 RedHat Problem

Discussion in 'General Discussion' started by typhon, Apr 15, 2005.

  1. typhon

    typhon Well-Known Member

    Joined:
    Feb 17, 2004
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Where are the builds for php posted? Are you getting an official one from a mirror? The reason I am asking is that the php build from buildapache with 4.3.11 creates a problem with the foreach function by adding an extra array index.

    for instance:
    Code:
    $arr = array('something');
    foreach($arr as $ar) {
        print_r($ar);
    }
    
    prints out:

    Array ( [0] => something [1] => 0 )

    As you can see that poses a serious problem for certain web applications where the 1 dimension is needed.
     
  2. typhon

    typhon Well-Known Member

    Joined:
    Feb 17, 2004
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    also on a quick sidenote, the official builds from the us.php.net does not do this. nor do the windows builds from us.php.net pose this problem.

    mike
     
  3. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
  4. typhon

    typhon Well-Known Member

    Joined:
    Feb 17, 2004
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Found out the problem.

    The problem exists when zend optimizer is not updated when you update your php, which I think is something that buildapache should handle if it is previously installed.

    ;)
     
  5. StevenC

    StevenC Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    That was a known issue since 4.3.10 was released. ITs not cpanels problem its your problem.
     
Loading...

Share This Page