From:             
Operating system: Linux (Fedora 15)
PHP version:      5.4.0beta1
Package:          Variables related
Bug Type:         Bug
Bug description:Behavior of unserialize has changed

Description:
------------
There is a regression or change in how object structures are serialized or

unserialized in PHP's 5.4.x branch. I am sorry that I cannot give a more
detailed 
explanation and say what has changed and causes this issue, but an object
cache 
for one of my applications fails with all PHP 5.4.x version, while it works
with 
all PHP 5.2.x and PHP 5.3.x versions.

I would expect that this behavior change would also affect other
applications or 
libraries that utilize PHP's (un)serialize functions.

Test script:
---------------
#!/bin/sh

PHP_BIN=/usr/local/bin/php540

cd /tmp

git clone https://github.com/pdepend/pdepend.git
cd pdepend
"$PHP_BIN" ./src/bin/pdepend.php --summary-xml=sum.xml src/main/
"$PHP_BIN" ./src/bin/pdepend.php --summary-xml=sum.xml src/main/

Expected result:
----------------
PHP_Depend @package_version@ by Manuel Pichler

Parsing source files:
............................................................    60
............................................................   120
............................................................   180
................                                               196

Executing CyclomaticComplexity-Analyzer:
............................................................  1200
..............................                                1818

Executing ClassLevel-Analyzer:
............................................................  1200
......................                                        1647

Executing CodeRank-Analyzer:
..........                                                     217

Executing Coupling-Analyzer:
............................................................  1200
..........................................                    2048

Executing Hierarchy-Analyzer:
............................................................  1200
................................                              1852

Executing Inheritance-Analyzer:
...........................                                    549

Executing NPathComplexity-Analyzer:
............................................................  1200
...............................                               1830

Executing NodeCount-Analyzer:
............................................................  1200
..................                                            1564

Executing NodeLoc-Analyzer:
............................................................  1200
............................                                  1766

Generating pdepend log files, this may take a moment.

00:16; Memory: 124.00Mb


Actual result:
--------------
PHP_Depend @package_version@ by Manuel Pichler

Parsing source files:
............................................................    60
............................................................   120
.................PHP Warning:  Creating default object from empty value in

/tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569

Warning: Creating default object from empty value in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569
.........................PHP Warning:  Creating default object from empty
value 
in /tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569

Warning: Creating default object from empty value in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569
.........PHP Warning:  Creating default object from empty value in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569

Warning: Creating default object from empty value in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569
PHP Warning:  Creating default object from empty value in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569

Warning: Creating default object from empty value in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569
PHP Warning:  Creating default object from empty value in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569

Warning: Creating default object from empty value in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569
.........   180
...........PHP Warning:  Creating default object from empty value in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569

Warning: Creating default object from empty value in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/ASTNode.php on line 569
.....                                               196

Executing CyclomaticComplexity-Analyzer:
....................PHP Fatal error:  Call to a member function 
findChildrenOfType() on a non-object in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/AbstractClassOrInterface.php on
line 
268

Fatal error: Call to a member function findChildrenOfType() on a non-object
in 
/tmp/pdepend/src/main/php/PHP/Depend/Code/AbstractClassOrInterface.php on
line 
268

-- 
Edit bug report at https://bugs.php.net/bug.php?id=55801&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55801&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55801&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55801&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55801&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55801&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55801&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55801&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55801&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55801&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55801&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55801&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55801&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55801&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55801&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55801&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55801&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55801&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55801&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55801&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55801&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55801&r=mysqlcfg

Reply via email to