[Tickets #1323] Horde with PHP 5.0.3: Prefs don't get saved in the
database
bugs at bugs.horde.org
bugs at bugs.horde.org
Tue Feb 8 05:30:11 PST 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=1323
-----------------------------------------------------------------------
Ticket | 1323
Updated By | webmaster at ragnarokonline.de
Summary | Horde with PHP 5.0.3: Prefs don't get saved in the database
Queue | Horde Base
Version | 3.0.2
State | Feedback
Priority | 2. Medium
Type | Bug
Owners |
-----------------------------------------------------------------------
webmaster at ragnarokonline.de (2005-02-08 05:30) wrote:
Ok, after some more testing: Everything seems to work fine with PHP4, so
it's not a misconfiguration issue on my side.
The following testcase works as expected, so this semms not to be a global
issue with PHP 5:
<?php
class FOO
{
var $test1 = 123;
var $test2 = 'blah';
var $test3 = true;
var $test4 = false;
var $test5 = array(123, 'blah', true, false);
var $test6 = 0;
}
function foobar($return = false)
{
global $docroot, $foobar;
if (!$return)
file_put_contents($docroot . '/foobar.txt', '$foobar = ' .
var_export($foobar, true) . ";\n");
else
return "\n\n\$foobar = " . var_export($foobar, true) . ";\n";
}
function blah($return = false)
{
global $docroot, $blah;
if (!$return)
file_put_contents($docroot . '/blah.txt', '$blah = ' . var_export($blah,
true) . ";\n");
else
return "\n\n\$blah = " . var_export($blah, true) . ";\n";
}
$docroot = $_SERVER['DOCUMENT_ROOT'];
register_shutdown_function('foobar');
register_shutdown_function('blah');
$foobar = clone(new Foo());
$blah =& new Foo();
echo foobar(true);
echo blah(true);
$blah->test1 = $foobar->test1 = 456;
$blah->test2 = $foobar->test2 = 'moo';
$blah->test3 = $foobar->test3 = false;
$blah->test4 = $foobar->test4 = true;
$blah->test5 = $foobar->test5 = array(456, 'moo', false, true);
$blah->test6 = $foobar->test6 = 12;
echo foobar(true);
echo blah(true);
?>
More information about the bugs
mailing list