Changeset 19470
- Timestamp:
- 06/23/09 10:44:02 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.3/lib/autoload/sfAutoloadAgain.class.php
r16536 r19470 57 57 { 58 58 $autoloads = spl_autoload_functions(); 59 $position = array_search(array(__CLASS__, 'autoload'), $autoloads, true); 59 60 // as of PHP 5.3.0, spl_autoload_functions() returns the object as the first element of the array instead of the class name 61 if (version_compare(PHP_VERSION, '5.3.0RC1', '>=')) 62 { 63 foreach ($autoloads as $position => $autoload) 64 { 65 if ($this === $autoload[0]) 66 { 67 break; 68 } 69 } 70 } 71 else 72 { 73 $position = array_search(array(__CLASS__, 'autoload'), $autoloads, true); 74 } 60 75 61 76 if (isset($autoloads[$position + 1]))

