Re: cvs: php4 /pear/PEAR Packlist.php

From: Date: Thu, 19 Jul 2001 13:30:56 +0000
Subject: Re: cvs: php4 /pear/PEAR Packlist.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-302@lists.php.net to get a copy of this message
On Thu, 19 Jul 2001, Thomas V.V.Cox wrote: > function classesDeclaredBy($file) > { > $before = get_declared_classes(); > ob_start(); > include($file); > ob_end_clean(); > $after = get_declared_classes(); > // using array_slice to renumber array > $diff = array_slice(array_diff($after, $before), 0); > return $diff; > } It'd be faster to use array_values() to renumber the array. -Andrei The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

« previous php.pear.cvs (#302) next »