【发布时间】:2011-10-15 16:02:07
【问题描述】:
--
我有一个序列化数组发送到我的应用程序中的另一个函数。 然后我尝试反序列化数据并将其呈现在另一个地方。
反序列化功能适用于较小的数据量,例如数百条记录。当涉及 3000 多条记录时,我收到以下错误消息:
Notice (8): unserialize() [function.unserialize]: Error at offset 23048 of 3499833 bytes [APP/controllers/jobs_controller.php, line 475]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/v/s/vsdev/web/public_html/cake/libs/debugger.php:683) [APP/views/helpers/xls.php, line 19]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/v/s/vsdev/web/public_html/cake/libs/debugger.php:683) [APP/views/helpers/xls.php, line 20]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/v/s/vsdev/web/public_html/cake/libs/debugger.php:683) [APP/views/helpers/xls.php, line 21]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/v/s/vsdev/web/public_html/cake/libs/debugger.php:683) [APP/views/helpers/xls.php, line 22]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/v/s/vsdev/web/public_html/cake/libs/debugger.php:683) [APP/views/helpers/xls.php, line 23]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/v/s/vsdev/web/public_html/cake/libs/debugger.php:683) [APP/views/helpers/xls.php, line 24]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/v/s/vsdev/web/public_html/cake/libs/debugger.php:683) [APP/views/helpers/xls.php, line 25]
Link Job Job Ref Company Link Profession Specialism Sub Specialism Zone Country Region City Seniority Date Published Date Archived Days Active Email Enabled Created Modified
Warning (2): Invalid argument supplied for foreach() [APP/views/jobs/search_export.ctp, line 37]
怎么了?
【问题讨论】:
-
您需要检查偏移量 23048(1 个偏移量 = 1 个字符)处的未序列化/原始字符串并从那里开始。
serialize()不是unserialize()(或之前)可能存在问题
标签: php cakephp serialization