ob_get_clean() is not working on MAMP but works on WampServer?

mkei85

New Member
Can anyone explain why the following script behaves differently on two different platforms?Script:\[code\]<?phpecho "hello!";$view_content = ob_get_clean();echo "'".gettype($view_content)."' >".$view_content."<";\[/code\]Output 1 (on WampServer 2i - php v5.3.0 - Windows 7 x64 ):\[code\]'string' >hello!<\[/code\]Output 2 ( on MAMP 1.9 - php v5.3.2 - OSX 10.6.4 ):\[code\]hello!'boolean' ><\[/code\]It seems like MAMP is not performing the function 'ob_get_clean()' correctly. I also tried v5.2.13 of php on MAMP and saw the same problem. I realize that these are different "versions" of php but i feel like this should work.Is there an extension/module I'm missing?
 
Back
Top