From:             indey...@php.net
Operating system: any
PHP version:      5.3.0RC1
PHP Bug Type:     Date/time related
Bug description:  Wrong ARG_INFO for OO-API of DateTime

Description:
------------
ARG_INFO of several methods of DateTime class have $object as the first 
parameter, which, actually, is not needed in object-oriented API.

Reproduce code:
---------------
php --rc DateTime

Expected result:
----------------
…
Method [ <internal:date> public method setISODate ] {

      - Parameters [4] {
        Parameter #0 [ <required> $year ]
        Parameter #1 [ <required> $week ]
        Parameter #2 [ <optional> $day ]
      }
    }
…

Actual result:
--------------
…
Method [ <internal:date> public method setISODate ] {

      - Parameters [4] {
        Parameter #0 [ <required> $object ]
        Parameter #1 [ <required> $year ]
        Parameter #2 [ <required> $week ]
        Parameter #3 [ <optional> $day ]
      }
    }
…

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

Reply via email to