OSDN Git Service

Add a --recurse-objects flag
authorWill Anderson <will@itsananderson.com>
Sat, 4 Jan 2014 08:57:36 +0000 (00:57 -0800)
committerWill Anderson <will@itsananderson.com>
Sat, 4 Jan 2014 08:57:36 +0000 (00:57 -0800)
commit29454e3b568a1d9d21e0487ab88579fde94d3b36
tree6ad0f484372292b0c2a9947e56e5ffa493d6ff68
parent335707f3898c23e58fb217cfaebef8177cfafd81
Add a --recurse-objects flag

Including --recurse-objects enables recursive find/replace into objects.

This change also detects cycles in objects and arrays. If a cycle is
detected, or the XDebug max nesting level is reached, the function stops
recursing
php/commands/search-replace.php