[dev] Re: [cvs] commit: ingo filters.php whitelist.php ingo/config prefs.php.dist ingo/docs CHANGES ingo/lib Storage.php api.php ingo/lib/Script procmail.php sieve.php ingo/lib/Storage prefs.php ingo/templates/

Brent J. Nordquist bjn at horde.org
Sat Apr 19 11:24:18 PDT 2003


On Sat, 19 Apr 2003, Brent J. Nordquist <bjn at horde.org> wrote:

>     config               prefs.php.dist
>   1.9       +10 -2     ingo/config/prefs.php.dist
>
>   Chora Links:
>   http://cvs.horde.org/diff.php/ingo/config/prefs.php.dist?r1=1.8&r2=1.9&ty=u

Having an odd problem with this part of it, maybe someone could suggest
what I might be doing wrong.  I used "Rules" (filters.php) to add a
'rules' pref., and then I took the string out of the prefs database and
put it in prefs.php as the default.  But I'm getting an unserialize error:

[Sat Apr 19 09:12:04 2003] [error] PHP Notice:  unserialize() [<a href='http://www.php.net/function.unserialize'>function.unserialize</a>]: Error at offset 14 of 234 bytes in /Library/WebServer/Documents/horde/ingo/lib/Storage/prefs.php on line 42

I'm staring at column 14 and comparing it to the database and I can't see
anything wrong.  The serialization format is still fairly new to me though
so I am probably just missing it.

Database (dumped using "mysqldump"):

INSERT INTO horde_prefs VALUES ('bjn','ingo','rules','a:4:{i:0;a:2:{s:4:\"name\";s:9:\"Blacklist\";s:6:\"action\";s:9:\"blacklist\";}i:1;a:2:{s:4:\"name\";s:8:\"Vacation\";s:6:\"action\";s:8:\"vacation\";}i:2;a:2:{s:4:\"name\";s:9:\"Whitelist\";s:6:\"action\";s:9:\"whitelist\";}i:3;b:0;}');

prefs.php (from "grep"):

    'value' => 'a:4:{i:0;a:2:{s:4:\"name\";s:9:\"Blacklist\";s:6:\"action\";s:9:\"blacklist\";}i:1;a:2:{s:4:\"name\";s:8:\"Vacation\";s:6:\"action\";s:8:\"vacation\";}i:2;a:2:{s:4:\"name\";s:9:\"Whitelist\";s:6:\"action\";s:9:\"whitelist\";}i:3;b:0;}',

(not sure if escaping the " characters is needed in prefs.php or not...)

-- 
Brent J. Nordquist <bjn at horde.org> N0BJN
Other contact information: http://www.nordist.net/contact.html
* Fast pipe * Always on * Get out of the way - Tim Bray http://tinyurl.com/7sti



More information about the dev mailing list