php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3256 eval & serialized data
Submitted: 2000-01-19 17:19 UTC Modified: 2000-07-17 08:57 UTC
From: anton at concord dot ru Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 3 OS: NT 4.0+IIS 4.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anton at concord dot ru
New email:
PHP Version: OS:

 

 [2000-01-19 17:19 UTC] anton at concord dot ru
I use in my script serialized data from database, for example, data which was serialized by function 'serialize' set in 'DATA' field.

Sample code:
...
$Ser=mssql_result($MyResult,0,"DATA");
eval("\$Over=\$Ser;");
...

Parser error is occured after dinamic code evaluation.
As you wrote in incompatible features list '{' and '}' symbols used for string encapsulation. But same symbols  used as delimiters in serialization value. I changed souse code of
'serialize' and 'unserialize' functions. I Changed '{' and '}' delimiters to '[' and ']' delimiters. After rebuild sample code written above work without errors.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-17 07:22 UTC] stas at cvs dot php dot net
Please provide stand-alone code example (including values of variables).
 [2000-07-17 08:01 UTC] anton at concord dot ru
This bug is absent since release candidate 2, thanks.

Antonio.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 11:01:32 2024 UTC