midgardproject / midgard-php5

PHP5 API for Midgard persistent storage framework
http://www.midgard-project.org/api-docs/midgard/php/ratatoskr/
GNU Lesser General Public License v2.1
9 stars 2 forks source link

print_r on midgard_object consumes too much resources #48

Closed piotras closed 13 years ago

piotras commented 13 years ago

I know it's metadata and datetime object, which expose circular references. Problem is related to PHPUnit which (while checking objects equality) makes a diff from print_r output. It triggers "allowed memory exhausted..." error and makes tests useless (broken). If it's not easily fixable, I'll try to file a feature request for PHPUnit which could use serialized object to compare instead of print_r.

indeyets commented 13 years ago

Can you provide isolated test case for this? In form of "phpt" file, preferably.

piotras commented 13 years ago

Please close this as invalid. I didn't realize it's related to number of objects being included in print_r output.