I need your feedback on this.
We ugraded a portal, with custom made extension, from 3.9.1 to 3.9.2 and
php variables defined with a global scope stopped to be defined.
If we place such a simple script at the root of the eZ publish
installation 3.9.2
|<?php
$a = 1;
$b = 2;
function Sum()
{
global $a, $b;
$b = $a + $b;
}
Sum();
echo $b;
?>|
We got 3 answer (as expected)
If we place the same script in the cronjobs directory and if we run it
through a php runcronjobs.php We got 2 as the answer (!)
Doing the same in a 3.9.1 install gives 3 every time.
This screw up some of the extensions using global variables.
I read the changelog 3.9.1 to 3.9.2 and did not see anything new about
variable scope.
Does any of you experienced the same problem?
Thanks for your help.
J-A Eberhard
Open-Net Sàrl
--
Sdk-public mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/sdk-public