I recently saw this very warning when running a script under similar environment.
The problem for me was one line of code:
<?php
$_SESSION['captcha'] = NULL;
?>
When I changed that line to the following, the warning went away:
<?php
$_SESSION['captcha'] = false;
?>
I am sure the problem is not exact for you, but perhaps if you tweak your script a little.... it will help.
Sorry I can'b of any more assistance.