From:             
Operating system: 
PHP version:      5.2.13
Package:          SPL related
Bug Type:         Documentation Problem
Bug description:missing changelog for prepend parameter on spl_autoload_register

Description:
------------
The documentation fails to mention that the $prepend parameter was added in
php 

5.3





Test script:
---------------
<?php



function foo($class) {}

function bar($class) {}



spl_autoload_register('foo');

spl_autoload_register('bar', true, true);

$funcs = spl_autoload_functions();

assert('bar' == $funcs[0]);

assert(2 == count($funcs));

print_r($funcs);

Expected result:
----------------
According to the documentation, the two assertions in the test scripts
should 

pass for any php version >= 5.1.2. However, the two assertions fail in
5.2.13.



Expected output

Array

(

    [0] => bar,

    [1] => foo

)



Actual result:
--------------
Warning: assert(): Assertion failed in blah.php on line 9

Warning: assert(): Assertion failed in blah.php on line 10

Array

(

    [0] => foo

)



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

Reply via email to