[PEPr] Comment on File Formats::Genealogy_Gedcom

From: Date: Mon, 12 Apr 2010 04:52:13 +0000
Subject: [PEPr] Comment on File Formats::Genealogy_Gedcom
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-53415@lists.php.net to get a copy of this message
1) Look out for windows or environment specific changes; ie: /** * required by a PEAR2 package to load classes */ require 'C:\development\xampp\php\php\pear2\Autoload.php'; You should be able to configure your include path to just do require_once 'pear2/Autoload.php'; or similar. clockwerx@sg1:~/pear2/tests$ phpunit PEAR2_Genealogy_Gedcom/ PHP Warning: require(C:\development\xampp\php\php\pear2\Autoload.php): failed to open stream: No such file or directory in /home/clockwerx/pear2/tests/PEAR2_Genealogy_Gedcom/pear2.php.net/PEAR2/Genealogy/Gedcom/Records/PEAR2/Genealogy/Gedcom/Records/MediaRecordTest.php on line 6 2) Avoid work in the constructor: function __construct($Filename) { parent::__construct($Filename); parent::parse(); } -- http://pear.php.net/pepr/pepr-proposal-show.php?id=627

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