php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38928 i am getting unserialize error on 64Bit.
Submitted: 2006-09-22 16:50 UTC Modified: 2006-09-25 07:46 UTC
From: tsdreddy at gmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.4.4 OS: windows2003
Private report: No CVE-ID: None
 [2006-09-22 16:50 UTC] tsdreddy at gmail dot com
Description:
------------
Hi
i am using php4.4.4/windows2003/64-bit os. i am getting unserialize() error. the sam program and database is working fine in my old 32-bit system. Pl. help me regarding this

thanks
reddy

Reproduce code:
---------------
if (!$perms) {
			if ($group != -1) {
				$data  = $this->db->fetch("SELECT group_perms FROM {$this->pre}groups WHERE group_id={$group}");
				$perms = $data['group_perms'];
			} else {
				$data  = $this->db->fetch("SELECT user_perms, user_group FROM {$this->pre}users WHERE user_id={$user}");
				$perms = $data['user_perms'];
				$group = $data['user_group'];
			}
		}

		$this->cube = unserialize($perms);
		if (!$this->cube) {
			$this->cube = $this->standard;
		}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-22 17:10 UTC] johannes@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2006-09-23 18:20 UTC] tsdreddy at gmail dot com
CONTINUITION OF PREVIOUS POST 
Code :
unserialize($perms);

Error :
unserialize(): Error at offset 24750 of 83074 bytes 

And php getting crash/hang when we are working with large data like large imports/exports @ phpmyadmin.

i have checked it @ windows003/apache2/mysql-4.0.26-win32/IIS6.0/php-4.4.4

Pl. help me regarding this

thanks
 [2006-09-25 07:08 UTC] tony2001@php.net
Please provide SHORT but COMPLETE reproduce script.
Avoid posting huge scripts.
 [2006-09-25 07:20 UTC] tsdreddy at gmail dot com
Hi

Pl. note that i am getting problem with unserialize with the data which is mentioned previous post. it is not manually generated, my application stores it in db. When i am working large POST/GET/Variables my system gets hang(particularly my explorer.exe of windows2003).

pl. help me asap. if this problem doen't have any solution. i need to go back to my 32 bit system.

if you want i can send my db backup.

thanks
reddy
 [2006-09-25 07:23 UTC] tony2001@php.net
No, thank you, we don't need a DB backup.
Please provide a short but complete reproduce script instead.
 [2006-09-25 07:34 UTC] tsdreddy at gmail dot com
hi 
thanks for the quick feeback.
here i am trying to explain my problem indetails

1. i am using MercuryBoard(http://www.mercuryboard.com) which is developed in php/mysql
2. It is working fine in 32Bit windows  and Linux based system.
3. Now i want to upgrade all my servers to new Pentinum Duo Core processor /windows2003
4. When i was in trial drive of my website i am getting an error @ unserialize operation. and it is getting hang when there is any large data operations POSTing/Saving/Regtrieving data.This is happening both on IIS6 and Apache2.0

Below is the code where i was getting unserialize error:
unserialize($perms);
Error :
unserialize(): Error at offset 24750 of 83074 bytes

where $prems is a varibale retrieved from database.
i have mentioned $perms value in previous mail. $perms always have very big string value.literally it has all settings of the board. 

thanks in advance
reddy
 [2006-09-25 07:42 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Please report the problem to MercuryBoard developers.
 [2006-09-25 07:46 UTC] tsdreddy at gmail dot com
This rediculus. what r u thing about a user of php.why do u set my post as a bogus. i was given mercury board as an explample. i am getting the problem with my same code. if you don't want to give any support good. tell the same thing. don't play with any developed . i am sure i will make a complaint on u.

thanks
reddy
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 20:01:29 2024 UTC