Menu

#10 Issues arising from DateTime Class

open-fixed
nobody
None
5
2008-05-30
2007-09-28
Nick
No

Hi

I have found a problem with the naming of the DateTime class. The error highlighted that the issue lay in ln46 of the file /dist/DateTime.php and the class could not be redefined.

On further investigation this is due to the DateTime name space being changed in the latest versions of php5, see http://uk3.php.net/UPDATE_5_2.txt

It might be worth patching.

Thanks

Nick

Discussion

  • Filip Vandegehuchte

    • status: open --> open-fixed
     
  • Filip Vandegehuchte

    Logged In: YES
    user_id=2098852
    Originator: NO

    This is fixed in the subversion ,

    Change the name to the class, and the first method in the class and it is fixed

    HessianPHP\dist\DateTime.php(46): class DateTime{
    HessianPHP\dist\DateTime.php(61): function DateTime($date='now'){

    and change all the code where the class is used :
    in the files
    HessianPHP\dist\DateTime.php
    HessianPHP\dist\Hessian.php

     
  • Nobody/Anonymous

    Can somebody post thoose 2 classes because i can manage to work DateTime class :(

     

Log in to post a comment.