[PHP] Re: Unserialize stopped working after php db upgrade

2002-09-20 Thread Geoff Caplan

Martin,

MT If you're using serialised variables, I'd suggest serialising a
MTfew simple ones and see what the output looks like so that you can
MTsee when things are going amiss.

An interesting suggestion. I have a set and forget data api which
handles all these transformations in the background. So it is probably
a year since I looked at a serialized string. Which meant that when I
introduced a bug that sometimes double-serialized the string, I was at
a loss about how to diagnose the problem.

I will take your suggestion and become more familiar with the guts of
the serialized string.

Thanks again for helping out...

-- 
Geoff Caplan
Advantae Ltd

mailto:[EMAIL PROTECTED]
http://www.advantae.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Unserialize stopped working after php db upgrade

2002-09-18 Thread Geoff Caplan

Paul,

PN There must be an error in the serialized stringswould you mind
PN posting  one for us to look at? How about posting some code?

This is all very strange. The code has been working in production for
months. Since the upgrade of PHP and the DB, some are working and some
not. I can't see any pattern.

Where can I find info of the serialize format so I can look for
damage?

Here is one of the strings that is not unserializing - sorry it is so
long.

s:1745:s:1735:s:1725:s:1715:s:1705:s:1695:s:1685:s:1675:s:1665:s:1655:s:1645:s:1635:s:1625:s:1615:a:2:{s:10:attributes;a:32:{s:13:attribute_204;s:1:4;s:13:attribute_205;s:1:5;s:13:attribute_206;s:3:Yes;s:13:attribute_207;s:3:Yes;s:13:attribute_208;s:3:Yes;s:13:attribute_209;s:3:Yes;s:13:attribute_210;s:2:No;s:13:attribute_211;s:2:No;s:13:attribute_212;s:1:2;s:13:attribute_213;s:2:No;s:13:attribute_214;s:2:No;s:13:attribute_215;s:2:No;s:13:attribute_216;s:3:Yes;s:13:attribute_217;s:2:No;s:13:attribute_218;s:2:No;s:13:attribute_219;s:2:No;s:13:attribute_220;s:2:No;s:13:attribute_221;s:2:No;s:13:attribute_222;s:2:No;s:13:attribute_223;s:2:No;s:13:attribute_224;s:15:Residual
drying;s:13:attribute_225;s:3:Yes;s:13:attribute_226;s:2:No;s:13:attribute_227;s:2:12;s:13:attribute_228;s:2:53;s:13:attribute_229;s:5:White;s:13:attribute_230;s:3:651;s:13:attribute_231;s:3:555;s:13:attribute_232;s:3:460;s:13:attribute_233;s:1:C;s:13:attribute_234;s:1:B;s:13:attribute_235;s:1:C;}s:5:lists;a:20:{s:14:list_2_1_label;s:0:;s:17:list_2_1_man_code;s:0:;s:13:list_2_1_code;s:0:;s:13:list_2_1_sort;s:0:;s:14:list_2_2_label;s:0:;s:17:list_2_2_man_code;s:0:;s:13:list_2_2_code;s:0:;s:13:list_2_2_sort;s:0:;s:14:list_2_3_label;s:0:;s:17:list_2_3_man_code;s:0:;s:13:list_2_3_code;s:0:;s:13:list_2_3_sort;s:0:;s:14:list_2_4_label;s:0:;s:17:list_2_4_man_code;s:0:;s:13:list_2_4_code;s:0:;s:13:list_2_4_sort;s:0:;s:14:list_2_5_label;s:0:;s:17:list_2_5_man_code;s:0:;s:13:list_2_5_code;s:0:;s:13:list_2_5_sort;s:0:;}};;
--  Geoff Caplan Advantae Ltd

mailto:[EMAIL PROTECTED]
http://www.advantae.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Unserialize stopped working after php db upgrade

2002-09-18 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Geoff,
It looks like that string has been serialized multiple times.
Update your serialized string to:
- -
a:2:{s:10:attributes;a:32:{s:13:attr
ibute_204;s:1:4;s:13:attribute_205;s:1:5;s:13:attribute_206;s:3:Ye
s;s:13:attribute_207;s:3:Yes;s:13:attribute_208;s:3:Yes;s:13:attri
bute_209;s:3:Yes;s:13:attribute_210;s:2:No;s:13:attribute_211;s:2:
No;s:13:attribute_212;s:1:2;s:13:attribute_213;s:2:No;s:13:attribu
te_214;s:2:No;s:13:attribute_215;s:2:No;s:13:attribute_216;s:3:Yes
;s:13:attribute_217;s:2:No;s:13:attribute_218;s:2:No;s:13:attribut
e_219;s:2:No;s:13:attribute_220;s:2:No;s:13:attribute_221;s:2:No;
s:13:attribute_222;s:2:No;s:13:attribute_223;s:2:No;s:13:attribute_
224;s:15:Residual
 drying;s:13:attribute_225;s:3:Yes;s:13:attribute_226;s:2:No;s:13:
attribute_227;s:2:12;s:13:attribute_228;s:2:53;s:13:attribute_229;s
:5:White;s:13:attribute_230;s:3:651;s:13:attribute_231;s:3:555;s:1
3:attribute_232;s:3:460;s:13:attribute_233;s:1:C;s:13:attribute_234
;s:1:B;s:13:attribute_235;s:1:C;}s:5:lists;a:20:{s:14:list_2_1_lab
el;s:0:;s:17:list_2_1_man_code;s:0:;s:13:list_2_1_code;s:0:;s:13:
list_2_1_sort;s:0:;s:14:list_2_2_label;s:0:;s:17:list_2_2_man_code
;s:0:;s:13:list_2_2_code;s:0:;s:13:list_2_2_sort;s:0:;s:14:list_2
_3_label;s:0:;s:17:list_2_3_man_code;s:0:;s:13:list_2_3_code;s:0:
;s:13:list_2_3_sort;s:0:;s:14:list_2_4_label;s:0:;s:17:list_2_4_man
_code;s:0:;s:13:list_2_4_code;s:0:;s:13:list_2_4_sort;s:0:;s:14:
list_2_5_label;s:0:;s:17:list_2_5_man_code;s:0:;s:13:list_2_5_code;
s:0:;s:13:list_2_5_sort;s:0:;}}
- 
Yes, you'll need to delete the line breaks and make that one line.
As far as the format, I'm not sure of a url/manpageI just know a little 
of the format.
The basic is:
var type : var length : var value;
For arrays you have the format reoccur inside of braces.
~Pauly
 
On Wednesday 18 September 2002 04:19 pm, Geoff Caplan wrote:
 Paul,

 PN There must be an error in the serialized stringswould you mind
 PN posting  one for us to look at? How about posting some code?

 This is all very strange. The code has been working in production for
 months. Since the upgrade of PHP and the DB, some are working and some
 not. I can't see any pattern.

 Where can I find info of the serialize format so I can look for
 damage?

 Here is one of the strings that is not unserializing - sorry it is so
 long.

--  Geoff
 Caplan Advantae Ltd

 mailto:[EMAIL PROTECTED]
 http://www.advantae.com

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
The webthe way you want it!
[EMAIL PROTECTED]

It said uses Windows 98 or better, so I loaded Linux!
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9iOfEDyXNIUN3+UQRAkt6AJwIFoicQsDCIXCsaU1VmTqLYM1ysACZAdvP
S2JTvSK3vZnn/aV4thj++bE=
=NGC+
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php