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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 22:00:01 2026 UTC