Development

Changeset 2651

You must first sign up to be able to contribute.

Changeset 2651

Show
Ignore:
Timestamp:
11/09/06 21:16:15 (2 years ago)
Author:
fabien
Message:

made Sypc::_dumpNode compatible with php5.2 (closes #988 - patch from epaulin)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/util/Spyc.class.php

    r2498 r2651  
    458458    if (is_object($value)) 
    459459    { 
    460       $value = (string) $value; 
     460       if (method_exists($value, '__toString')) 
     461       { 
     462         $value = (string) $value; 
     463       } 
     464       else 
     465       { 
     466         $ref = new ReflectionObject($value); 
     467         $value = $ref->getName(); 
     468       } 
    461469    } 
    462470