From: <bin...@li...> - 2001-10-06 23:02:22
|
hi all, For some reason I can't get access to the php.net news server (is nntp down on it? I can get http from it).. anyway: please respond to me directly, en...@tu.... so: I have a very large source tree (binarycloud) and I point PHPDoc at that source tree, trying to get documentation. Here's the result (the script is last): alex@box docs> php -q StaticPHPDocBuild.php Parser starts... ... preparse to find modulegroups and classtrees. ... parsing classes. Segmentation fault (core dumped) alex@box docs> I'm running 4.0.6, this is PHPDoc from the latest pear CVS.. For the cli version I'm running, I jacked up the memory to allow for the number of files. (Could this be the problem? not enough memory?) If I run phpdoc on a very small set of files (just those classes in binarycloud/base/core/), I get the following: alex@box docs> php -q StaticPHPDocBuild.php Parser starts... ... preparse to find modulegroups and classtrees. ... parsing classes. ... parsing modules. ... writing packagelist. Parser finished. Starting to render... IntegratedTemplate Error: The name of a block must be unique within a template. Found '__global__' twice. Unpredictable results may appear.IntegratedTemplate Error: The name of a block must be unique within a template. Found '__global__' twice. Unpredictable results may appear. alex@box docs> I looked in the templates directory, and couldn't even find a unique __global__ string.. I found _global_ in a couple block names, but they were unique block names. After the 'small tree' script, I _do_ get what appears to be complete xml, so the notice is correct: alex@box docs> ls html/ CVS/ class_Page.xml classtree_Debug.xml classtree_Sess.xml warnings_parser.xml README class_Perm.xml classtree_Lang.xml elementlist.xml class_Auth.xml class_Request.xml classtree_Page.xml packagelist.xml class_Debug.xml class_Sess.xml classtree_Perm.xml phpdoc_elementlist.html class_Lang.xml classtree_Auth.xml classtree_Request.xml warnings_classanalyser.xml alex@core docs> Here's my script: <?php /** * You will by now have noticed that this is taken * directly from phpdoc.de */ // HACK $default_site_name = 'default'; // quick hack to insert a site name $start = time(); // WARNING: long runtimes! Make modifications // to the php[3].ini if neccessary. A P3-500 // needs slightly more than 30 seconds to // document phpdoc itself. // Directory with include files define("PHPDOC_INCLUDE_DIR", "../ext/phpdoc/"); // Important: set this to the Linebreak sign of your system! define("PHPDOC_LINEBREAK", "\n"); // main PHPDoc Include File include("../ext/phpdoc/prepend.php"); $doc = new Phpdoc; // Sets the name of your application. // The name of the application gets used in many default templates. $doc->setApplication("binarycloud ".$default_site_name); // directory where your source files reside: $doc->setSourceDirectory('../base/core/'); // save the generated docs here: $doc->setTarget('./html/'); // use these templates: $doc->setTemplateDirectory("../ext/phpdoc/renderer/html/templates/"); // source files have one of these suffixes: $doc->setSourceFileSuffix( array ("php") ); // parse and generate the xml files $doc->parse(); // turn xml in to html using templates $doc->render(); printf("%d seconds needed\n\n.", time() - $start); ?> tia, all _alex en...@tu... |
From: <bin...@li...> - 2001-10-07 04:18:44
|
> If I run phpdoc on a very small set of files (just those classes in > binarycloud/base/core/), I get the following: > > alex@box docs> php -q StaticPHPDocBuild.php > Parser starts... > ... preparse to find modulegroups and classtrees. > ... parsing classes. > ... parsing modules. > ... writing packagelist. > Parser finished. > Starting to render... > IntegratedTemplate Error: The name of a block must be unique within a > template. Found '__global__' twice. Unpredictable results may > appear.IntegratedTemplate Error: The name of a block must be > unique within a > template. Found '__global__' twice. Unpredictable results may appear. > alex@box docs> > Alex. I had the same problem. If you grab the IT[X] stuff from PHP4 CVS then it tends to work. I think there are some version differences between IT[X} in the pear and php4 trees. I've copied PHPDoc out of pear and IT[X] out of php4 and away it went. Cheers, Graeme |
From: <bin...@li...> - 2001-10-07 08:12:17
|
On Sun, 7 Oct 2001 14:20:20 +1000, Graeme Merrall wrote: >> alex@box docs> php -q StaticPHPDocBuild.php >> Parser starts... >> ... preparse to find modulegroups and classtrees. >> ... parsing classes. >> ... parsing modules. >> ... writing packagelist. >> Parser finished. >> Starting to render... >> IntegratedTemplate Error: The name of a block must be unique within a >> template. Found '__global__' twice. Unpredictable results may >> appear.IntegratedTemplate Error: The name of a block must be >> unique within a >> template. Found '__global__' twice. Unpredictable results may appear. >> alex@box docs> >> > >Alex. >I had the same problem. If you grab the IT[X] stuff from PHP4 CVS then it >tends to work. I think there are some version differences between IT[X} in >the pear and php4 trees. There is no version of IT[X] in the /pear tree. The only version that is included in PEAR is in /php4/pear/HTML/ITX.php. For all the ones having problems with IT[X] and PHPDoc: Please get the latest from HTML/ITX.php and /pear/PHPDoc from CVS and try, if the error still occurs. - Martin |
From: <bin...@li...> - 2001-10-07 19:05:36
|
hi all, did a checkout of php4 cvs, found php4/pear/HTML/ITX.php... copied that alone to my include dir, didn't work (same problem) then I copied the _entire_ contents of HTML from the checkout, and that did work... so, problem solved :) btw... what's the expected ETA on a 100% separate CVS for pear? best, _alex ----- Original Message ----- From: <bin...@li...> To: "Graeme Merrall" <gr...@in...> Cc: "Alex Black" <en...@tu...>; <pea...@li...>; "binarycloud-dev" <bin...@li...> Sent: Sunday, October 07, 2001 1:08 AM Subject: [binarycloud-dev] RE: [PEAR] PHPDoc segfaults..? > On Sun, 7 Oct 2001 14:20:20 +1000, Graeme Merrall wrote: > > >> alex@box docs> php -q StaticPHPDocBuild.php > >> Parser starts... > >> ... preparse to find modulegroups and classtrees. > >> ... parsing classes. > >> ... parsing modules. > >> ... writing packagelist. > >> Parser finished. > >> Starting to render... > >> IntegratedTemplate Error: The name of a block must be unique within a > >> template. Found '__global__' twice. Unpredictable results may > >> appear.IntegratedTemplate Error: The name of a block must be > >> unique within a > >> template. Found '__global__' twice. Unpredictable results may appear. > >> alex@box docs> > >> > > > >Alex. > >I had the same problem. If you grab the IT[X] stuff from PHP4 CVS then it > >tends to work. I think there are some version differences between IT[X} in > >the pear and php4 trees. > > There is no version of IT[X] in the /pear tree. The only version that is > included in PEAR is in /php4/pear/HTML/ITX.php. > > For all the ones having problems with IT[X] and PHPDoc: Please get the > latest from HTML/ITX.php and /pear/PHPDoc from CVS and try, if the error > still occurs. > > - Martin > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > https://lists.sourceforge.net/lists/listinfo/binarycloud-dev > http://www.binarycloud.com > http://www.sf.net/projects/binarycloud/ > |
From: <bin...@li...> - 2001-10-07 19:58:48
|
On Sun, 7 Oct 2001 12:02:25 -0700, alex black wrote: >what's the expected ETA on a 100% separate CVS for pear? Right now we can't do that because the infrastructure on pear.php.net isn't finished yet. Today I did some work for the account requesting thingie (which is working properly now) and Tomas is working hard on the package/installer system. When this task is finished, we can (hopefully) finally move the rest of the code to /pear. My next effort will be to set up a proper documentation system (with Docbook) and helping Tomas in finishing the installer. Stay tuned, - Martin |
From: <bin...@li...> - 2001-10-07 22:04:00
|
> hi all, > > did a checkout of php4 cvs, found php4/pear/HTML/ITX.php... > copied that alone to my include dir, didn't work (same problem) > then I copied the _entire_ contents of HTML from the checkout, and that did > work... > > so, problem solved :) errr.. not :( I ran the test on a larger set of files, the Segfault problem still persists... I'll spend a bit more time trying to see if anything changes that and do a backtrace later in the week. best, _alex |