Can anyone explain why the following script behaves differently on two different platforms?
Script:
<?php
echo "hello!";
$view_content = ob_get_clean();
echo "'".gettype($view_content)."' >".$view_content."<";
Output 1 (on WampServer 2i - php v5.3.0 - Windows 7 x64 ):
'string' >hello!<
Output 2 ( on MAMP 1.9 - php v5.3.2 - OSX 10.6.4 ):
hello!'boolean' ><
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?