Re: About PHPDOC on windows

From: Date: Thu, 08 Aug 2002 09:01:08 +0000
Subject: Re: About PHPDOC on windows
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969347908@lists.php.net to get a copy of this message
Hello! Got probably the same problem on Windows. After some investigations I've found the following: Configure generates scripts/file-entities.php, there are the follwing lines: $srcdir = str_replace("\\", "/", abs_path(".")); // The translation dir is passed as the 6th argument, counting // from the end of the argument list $trans_dir = "$srcdir/en"; // The original directory is in the base directory, and named "en" $orig_dir = "$srcdir/en"; The value of $srcdir is phpdoc/scripts, probably it should be phpdoc. With the incorrect path entities/file-entities.ent contains nothing after <!-- all other files --> and jade fails to make htmls. After changing lines to: $trans_dir = "$srcdir/../en"; $orig_dir = "$srcdir/../en"; all is working. It seems that there is some problem in getting path on windows. On Linux I've compiled help without any problems. P.S. Sorry if it was already discussed, I've subscribed just yesterday and was unable to find anything similar in the archives. Turbano wrote:
Hi people, last night i've deleted all of my repository and make checkout of it again. Yes: the problem with file-entities.ent error opening continues. :-( and Yes: exactly making the changes that i suggest, the error continues when is included the ZendAPI documentation. I've try for about 30 minutes find out what the changes, implied in the script of file-entities.ent file, but I did not arrive at no good conclusion, just some intersting facts: In the "configure", the check of presence of the ZendAPI sets to "notfound" (everything together), but at the file-entities.php (changeded by the way that i said) its accuse "ZendAPI part included". Looking at the file-entities.php(.in), i've arrive the conclusion that the problem is at the line $zendapi = "@ZENDAPI@" == "not found" ?.... The script always decide that "@ZENDAPI@" == "not found", or, always is equal "not found". Therefore it includes the call of the documentation of the ZendAPI, and therefore he gives error in the time to compile the manual local (exactly with my alteration). I perceived from there that the problem of creation of file-entities.ent elapses of the same source: In my machine, the PHP is not deciding the "@ANYTHING@" for values. To say the truth, this does not make no direction for me: I did not understand for which mechanism the PHP make this. Looking at for the description of versions, it repairs in that the Goba wrote: "Specify uses configures features you parameters, so we of not need you tweak code because of windows problems... " For me, it can be something related the environment variables, but still yes I do not understand as this can afect the function with the "@ANYTHING@". I placed one echo env; in the start of the execution of file-entities.php and it did not have nothing of ZENDAPI or the other environment variables defined in it configures it. One var_dump($argv) showed a complex argument, with pparently all the data that script needs, but, of new, I do not know how PHP maps these values for "@@". "Note: this is an email that a friend sent to me, and i'm repassing this in english" I hope that somebody can help us :) -- Thanks, Turbano


« previous php.doc (#969347908) next »