Duplicating code between packages.

From: Date: Thu, 12 Jun 2003 22:14:02 +0000
Subject: Duplicating code between packages.
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17362@lists.php.net to get a copy of this message
Hi, In the Image_Transform NetPBM driver I need to use two of the methods from the file package (getTempFile() and getTempDir()). Should I include this package in the code, creating an extra dependency and adding another 500+ lines of code, or should I instead duplicate these two methods in my driver? If I was using C I'd do the former, but for PHP is the latter better? Thanks, Peter

« previous php.pear.dev (#17362) next »