# unserialize() and pear

- Thread: https://externals.io/message/12720
- Original archive: https://news-web.php.net/php.internals/12720
- Started by Nuno Lopes on 2004-09-10T18:42:42+00:00
- Messages: 8
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #12720 — Nuno Lopes — 2004-09-10T18:42:42+00:00

URL: https://externals.io/message/12720#12720

Hello,

I think that the last `unserialize()` changes (2004-09-05) have broken it, 
because now I can't even do a simple 'pear list'.
I can reproduce this problem in both my two pcs.

Can someone check this problem, please?

Thanks,
Nuno

---

## #12722 — Marcus Boerger — 2004-09-10T21:32:18+00:00

URL: https://externals.io/message/12720#12722 · In reply to: #12720

Hello Nuno,

  can you sent me he code it is trying to deserialize?

marcus

Friday, September 10, 2004, 8:42:42 PM, you wrote:

> Hello,

> I think that the last `unserialize()` changes (2004-09-05) have broken it, 
> because now I can't even do a simple 'pear list'.
> I can reproduce this problem in both my two pcs.

> Can someone check this problem, please?

> Thanks,
> Nuno 




-- 
Best regards,
 Marcus                            mailto:helly@php.net

---

## #12726 — Greg Beaver — 2004-09-10T21:45:14+00:00

URL: https://externals.io/message/12720#12726 · In reply to: #12722

Nuno:

It would also be helpful to know what version of PEAR you are using, and 
in particular, the setting of magic_quotes_runtime.  Earlier PEAR 
versions choked on the unserialize statements in PEAR_Registry if this 
setting was on.

Greg

Marcus Boerger wrote:

> Hello Nuno,
> 
>   can you sent me he code it is trying to deserialize?
> 
> marcus
> 
> Friday, September 10, 2004, 8:42:42 PM, you wrote:
> 
> 
> > […]
> 
> 
> > […]
> 
> 
> > […]
> 
> 
> > […]

---

## #12737 — Nuno Lopes — 2004-09-11T15:43:07+00:00

URL: https://externals.io/message/12720#12737 · In reply to: #12722

Hello Marcus,

PHP prints an error for every file in /usr/local/lib/php/.registry
One of those files: http://testes.aborla.net/pear.reg

prints:
"Notice: `unserialize()`: Error at offset 121 of 8404 bytes in test.php on 
line 5"

Nuno


----- Original Message ----- 
> Hello Nuno,
>
>  can you sent me he code it is trying to deserialize?
>
> marcus
>
> Friday, September 10, 2004, 8:42:42 PM, you wrote:
>
> > […]
>
> > […]
>
> > […]
>
> > […]
>
>
> -- 
> Best regards,
> Marcus                            mailto:helly@php.net

---

## #12739 — Greg Beaver — 2004-09-11T16:05:08+00:00

URL: https://externals.io/message/12720#12739 · In reply to: #12737

Nuno Lopes wrote:
> Hello Marcus,
> 
> PHP prints an error for every file in /usr/local/lib/php/.registry
> One of those files: http://testes.aborla.net/pear.reg
> 
> prints:
> "Notice: `unserialize()`: Error at offset 121 of 8404 bytes in test.php on 
> line 5"

This file is truncated, please verify that it indeed does not start with 
  a:{

A valid .reg file (for the Cache package) is attached, perhaps you could 
use it to test unserialize on your end.  I suspect something happened 
and a program ate something from your PEAR installation.

Greg

---

## #12740 — Nuno Lopes — 2004-09-11T16:17:16+00:00

URL: https://externals.io/message/12720#12740 · In reply to: #12739

> Nuno Lopes wrote:
> > […]
>
> This file is truncated, please verify that it indeed does not start with
>  a:{
>
> A valid .reg file (for the Cache package) is attached, perhaps you could
> use it to test unserialize on your end.  I suspect something happened
> and a program ate something from your PEAR installation.
>
> Greg


It doesn't work also with your file:
"Notice: `unserialize()`: Error at offset 26 of 5366 bytes in test2.php on 
line 4"

Nuno

---

## #12746 — Marcus Boerger — 2004-09-12T12:45:57+00:00

URL: https://externals.io/message/12720#12746 · In reply to: #12740

Hello Nuno,

  that should be fixed now. If not report the problem please again here.

best regards
marcus

Saturday, September 11, 2004, 6:17:16 PM, you wrote:

> > […]


> It doesn't work also with your file:
> "Notice: `unserialize()`: Error at offset 26 of 5366 bytes in test2.php on 
> line 4"

> Nuno 




-- 
Best regards,
 Marcus                            mailto:helly@php.net

---

## #12747 — Nuno Lopes — 2004-09-12T12:53:45+00:00

URL: https://externals.io/message/12720#12747 · In reply to: #12746

Yes, its fixed. Thanks Marcus!

Nuno


----- Original Message ----- 
> Hello Nuno,
>
>  that should be fixed now. If not report the problem please again here.
>
> best regards
> marcus
>
> Saturday, September 11, 2004, 6:17:16 PM, you wrote:
>
> > […]
>
>
> > […]
>
> > […]
