Ticket #11597: 11597-simplepie-only.patch
| File 11597-simplepie-only.patch, 1.5 KB (added by , 16 years ago) |
|---|
-
wp-includes/class-simplepie.php
764 764 } 765 765 766 766 /** 767 * Remove items that link back to this before destroying this object 767 * destroy all of this objects circular references sothat an unset operation 768 * can free memory. 768 769 */ 769 function __destruct()770 function destroy() 770 771 { 771 772 if ((version_compare(PHP_VERSION, '5.3', '<') || !gc_enabled()) && !ini_get('zend.ze1_compatibility_mode')) 772 773 { 773 if (!empty($this->data['items']))774 foreach ( array('items', 'ordered_items') as $key ) 774 775 { 775 foreach ($this->data['items'] as $item)776 if ( !empty($this->data[$key]) ) 776 777 { 777 $item->__destruct(); 778 foreach( $this->data[$key] as $item ) 779 { 780 $item->destroy(); 781 } 778 782 } 779 unset($item, $this->data['items']);780 783 } 781 if (!empty($this->data['ordered_items']))782 {783 foreach ($this->data['ordered_items'] as $item)784 {785 $item->__destruct();786 }787 unset($item, $this->data['ordered_items']);788 }789 784 } 790 785 } 791 786 … … 3123 3118 } 3124 3119 3125 3120 /** 3126 * Remove items that link back to this before destroying this object 3121 * destroy all of this objects circular references sothat an unset operation 3122 * can free memory. 3127 3123 */ 3128 function __destruct()3124 function destroy() 3129 3125 { 3130 3126 if ((version_compare(PHP_VERSION, '5.3', '<') || !gc_enabled()) && !ini_get('zend.ze1_compatibility_mode')) 3131 3127 {