typhon

Well-Known Member
Feb 17, 2004
65
0
156
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.
 

typhon

Well-Known Member
Feb 17, 2004
65
0
156
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
 

typhon

Well-Known Member
Feb 17, 2004
65
0
156
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.

;)
 

StevenC

Well-Known Member
Jan 1, 2004
252
0
166
That was a known issue since 4.3.10 was released. ITs not cpanels problem its your problem.