[PHP-DEV] PHP 4.0 Bug #3256: eval & serialized data From: anton <email protected>
Date: 01/19/00

From: anton <email protected>
Operating system: NT 4.0+IIS 4.0
PHP version: 4.0 Beta 3
PHP Bug Type: Scripting Engine problem
Bug description: eval & serialized data

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.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>