[PHP-DOC] cvs: phpdoc /en/chapters config.xml /en/features file-upload.xml
yohgaki Wed Apr 3 03:30:56 2002 EDT Modified files: /phpdoc/en/chapters config.xml /phpdoc/en/features file-upload.xml Log: Added description for post_max_size. Index: phpdoc/en/chapters/config.xml diff -u phpdoc/en/chapters/config.xml:1.46 phpdoc/en/chapters/config.xml:1.47 --- phpdoc/en/chapters/config.xml:1.46 Mon Apr 1 16:06:11 2002 +++ phpdoc/en/chapters/config.xml Wed Apr 3 03:30:55 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.46 $ -- +!-- $Revision: 1.47 $ -- chapter id=configuration titleConfiguration/title -631,6 +631,28 See also link linkend=commandlinecommand line/link. Also, this directive became available in PHP 4.0.0 and was always on before that. +/simpara + /listitem + /varlistentry + + varlistentry id=ini.post_max_size + term +parameterpost_max_size/parameter +typeinteger/type + /term + listitem +simpara + Sets max size of post data allowed. This setting also affects + file upload. To upload large files, this value must be larger + than link linkend=upload-max-filesizeupload_max_filesize/link. + /simpara +simpara + If memory limit is enabled by configure script, link + linkend=ini.memory-limitmemory_limit/link also affects + file uploading. Generally speaking, link + linkend=ini.memory-limitmemory_limit/link should be + larger than link + linkend=ini.post-max-sizepost_max_size/link. /simpara /listitem /varlistentry Index: phpdoc/en/features/file-upload.xml diff -u phpdoc/en/features/file-upload.xml:1.36 phpdoc/en/features/file-upload.xml:1.37 --- phpdoc/en/features/file-upload.xml:1.36 Thu Mar 28 12:16:37 2002 +++ phpdoc/en/features/file-upload.xml Wed Apr 3 03:30:56 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.36 $ -- +!-- $Revision: 1.37 $ -- chapter id=features.file-upload titleHandling file uploads/title -243,8 +243,8 sure to set literalmax_execution_time/literal large enough. /simpara simpara -If literalpost_max_size/literal is set too small, large files -cannot be uploaded. Make sure to set +If link linkend=ini.post-max-sizepost_max_size/link set too +small, large files cannot be uploaded. Make sure to set literalpost_max_size/literal large enough. /simpara simpara
[PHP-DOC] cvs update quite strange
Hi! When I do a cvs update phpdoc, or only a cvs update phpdoc/hu/functions, my machine starts sending an extreme amount of memory somewhere, and does nothing to update the CVS files on my computer. That crappy CVS.exe sent 2 megabytes of data, without updating anything... That takes somewhat long using a modem, and I can't see anything worth this time, as nothing really happened to my local files... I have the latest virus protection software for win, and only CVS is working that strange, so I don't know what's up, but I am a bit angry, as I cannot do any work on php CVS stuff... Goba
[PHP-DOC] cvs: phpdoc /hu/functions array.xml
gobaWed Apr 3 06:14:40 2002 EDT Modified files: /phpdoc/hu/functionsarray.xml Log: Correcting build breaking errors [my CVS.exe problems are not solved, though I can check out one file, I cannot check out one directory :((] Index: phpdoc/hu/functions/array.xml diff -u phpdoc/hu/functions/array.xml:1.16 phpdoc/hu/functions/array.xml:1.17 --- phpdoc/hu/functions/array.xml:1.16 Sat Mar 30 09:17:07 2002 +++ phpdoc/hu/functions/array.xml Wed Apr 3 06:14:39 2002 -33,23 +33,19 section id=array.installation titleTelepítés/title para -| Nincs szükség semmilyen telepítési lépésre, ahhoz hogy használhasd ezeket + Nincs szükség semmilyen telepítési lépésre, ahhoz hogy használhasd ezeket a függvényeket, mivel a standard csomag részei. /para /section section id=array.configuration titleFutásidejû beállítások/title -para no.config; -/para /section section id=array.resources titleErõforrás típusok/title -para no.resource; -/para /section section id=array.constants
[PHP-DOC] cvs: phpdoc /en/functions strings.xml
sander Wed Apr 3 06:21:57 2002 EDT Modified files: /phpdoc/en/functionsstrings.xml Log: Removed note from str_replace() and two minor whitespace fixes. Index: phpdoc/en/functions/strings.xml diff -u phpdoc/en/functions/strings.xml:1.169 phpdoc/en/functions/strings.xml:1.170 --- phpdoc/en/functions/strings.xml:1.169 Thu Mar 28 12:04:23 2002 +++ phpdoc/en/functions/strings.xml Wed Apr 3 06:21:56 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.169 $ -- +!-- $Revision: 1.170 $ -- reference id=ref.strings titleString functions/title titleabbrevStrings/titleabbrev -3451,14 +3451,13 parameterreplace/parameter are arrays, then functionstr_replace/function takes a value from each array and uses them to do search and replace on - parametersubject/parameter. If + parametersubject/parameter. If parameterreplace/parameter has fewer values than parametersearch/parameter, then an empty string is used for - the rest of replacement values. If parametersearch/parameter + the rest of replacement values. If parametersearch/parameter is an array and parameterreplace/parameter is a string; then this replacement string is used for every value of - parametersearch/parameter. The converse would not make - sense, though. + parametersearch/parameter. /para para example
Re: [PHP-DOC] cvs update quite strange
At 13.09 03/04/02 +0200, Gabor Hojtsy wrote: When I do a cvs update phpdoc, or only a cvs update phpdoc/hu/functions, my machine starts sending an extreme amount of memory somewhere, and does nothing to update the CVS files on my computer. That crappy CVS.exe sent 2 megabytes of data, without updating anything... That takes somewhat long using a modem, and I can't see anything worth this time, as nothing really happened to my local files... This started happening to me too, both for cvs update inside 'phpdoc' and 'phpweb', even if i'm on '/phpdoc/it/functions', it sends about 2megabytes of data before starting to do something useful. But I'm using cygwin.
Re: [PHP-DOC] cvs update quite strange
When I do a cvs update phpdoc, or only a cvs update phpdoc/hu/functions, my machine starts sending an extreme amount of memory somewhere, and does nothing to update the CVS files on my computer. That crappy CVS.exe sent 2 megabytes of data, without updating anything... That takes somewhat long using a modem, and I can't see anything worth this time, as nothing really happened to my local files... This started happening to me too, both for cvs update inside 'phpdoc' and 'phpweb', even if i'm on '/phpdoc/it/functions', it sends about 2megabytes of data before starting to do something useful. But I'm using cygwin. Why? Is this because the time changes? It is April 3 now, not April 1 :((( I was not enough patient to wait more after two megabytes... Goba
[PHP-DOC] cvs: phpdoc /en/functions filesystem.xml
sander Wed Apr 3 06:44:44 2002 EDT Modified files: /phpdoc/en/functionsfilesystem.xml Log: realpath() returns false on failure Index: phpdoc/en/functions/filesystem.xml diff -u phpdoc/en/functions/filesystem.xml:1.135 phpdoc/en/functions/filesystem.xml:1.136 --- phpdoc/en/functions/filesystem.xml:1.135Thu Mar 28 12:16:38 2002 +++ phpdoc/en/functions/filesystem.xml Wed Apr 3 06:44:44 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.135 $ -- +!-- $Revision: 1.136 $ -- reference id=ref.filesystem titleFilesystem functions/title titleabbrevFilesystem/titleabbrev -2733,6 +2733,10 the input parameterpath/parameter and return the canonicalized absolute pathname. The resulting path will have no symbolic link, '/./' or '/../' components. +/para +para + functionrealpath()/function returns false; on failure, e.g. if + the file does not exists. /para para example
Re: [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml
Hey, it's functionrealpath/function, not with realpath() (it's added automagically). Derick On Wed, 3 Apr 2002, Sander Roobol wrote: sanderWed Apr 3 06:44:44 2002 EDT Modified files: /phpdoc/en/functions filesystem.xml Log: realpath() returns false on failure Index: phpdoc/en/functions/filesystem.xml diff -u phpdoc/en/functions/filesystem.xml:1.135 phpdoc/en/functions/filesystem.xml:1.136 --- phpdoc/en/functions/filesystem.xml:1.135 Thu Mar 28 12:16:38 2002 +++ phpdoc/en/functions/filesystem.xmlWed Apr 3 06:44:44 2002 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.135 $ -- +!-- $Revision: 1.136 $ -- reference id=ref.filesystem titleFilesystem functions/title titleabbrevFilesystem/titleabbrev @@ -2733,6 +2733,10 @@ the input parameterpath/parameter and return the canonicalized absolute pathname. The resulting path will have no symbolic link, '/./' or '/../' components. +/para +para + functionrealpath()/function returns false; on failure, e.g. if + the file does not exists. /para para example Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net -
[PHP-DOC] cvs: phpdoc /en/functions filesystem.xml
sander Wed Apr 3 06:54:30 2002 EDT Modified files: /phpdoc/en/functionsfilesystem.xml Log: Removed () Index: phpdoc/en/functions/filesystem.xml diff -u phpdoc/en/functions/filesystem.xml:1.136 phpdoc/en/functions/filesystem.xml:1.137 --- phpdoc/en/functions/filesystem.xml:1.136Wed Apr 3 06:44:44 2002 +++ phpdoc/en/functions/filesystem.xml Wed Apr 3 06:54:29 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.136 $ -- +!-- $Revision: 1.137 $ -- reference id=ref.filesystem titleFilesystem functions/title titleabbrevFilesystem/titleabbrev -2735,7 +2735,7 '/./' or '/../' components. /para para - functionrealpath()/function returns false; on failure, e.g. if + functionrealpath/function returns false; on failure, e.g. if the file does not exists. /para para
Re: [PHP-DOC] cvs update quite strange
At 13.27 03/04/02 +0200, Gabor Hojtsy wrote: 'phpweb', even if i'm on '/phpdoc/it/functions', it sends about 2megabytes of data before starting to do something useful. But I'm using cygwin. Why? Is this because the time changes? It is April 3 now, not April 1 :((( I was not enough patient to wait more after two megabytes... I resolved deleting my '.cvspass' file and re-logging in with cvs -z3 -d:pserver:[EMAIL PROTECTED]:/repository login
[PHP-DOC] Bug #15256 Updated: Missing description of ini-file parameter post_max_size in manual
ID: 15256 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Linux 2.2.19-6.2.12 PHP Version: 4.1.1 New Comment: I added more description for it. Thank you for reporting. Previous Comments: [2002-04-03 03:04:12] [EMAIL PROTECTED] It's explained here http://www.php.net/manual/en/features.file-upload.common-pitfalls.php We might want to make this more obvious. [2002-01-28 11:36:47] [EMAIL PROTECTED] (I also looked at the online manual, dated 27-01-2002.) The php.ini-file parameter post_max_size is not documented in the I.3. Configuration section of the manual. To include a copy of the text in php.ini would be a start. It would be nice with a pointer to it from the upload_max_filesize parameter too though, since the post_max_size parameter effects upload size too, ie. it have to be at least as big as the upload_max_filesize as the accompanying MIME headers also takes some space. The parameter is also not mentioned in the section III.19. Handling file uploads, where it ought to be mentioned, at least in the Common Pitfalls subsection, where upload_max_filesize is mentioned. Affi -- Edit this bug report at http://bugs.php.net/?id=15256edit=1
[PHP-DOC] cvs: phpdoc /it/functions ctype.xml
scaro Wed Apr 3 12:38:32 2002 EDT Modified files: /phpdoc/it/functionsctype.xml Log: Sync with EN Index: phpdoc/it/functions/ctype.xml diff -u phpdoc/it/functions/ctype.xml:1.2 phpdoc/it/functions/ctype.xml:1.3 --- phpdoc/it/functions/ctype.xml:1.2 Sun Mar 17 12:15:05 2002 +++ phpdoc/it/functions/ctype.xml Wed Apr 3 12:38:32 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? - !-- EN-Revision: 1.23 Maintainer: scaro Status: ready -- + !-- EN-Revision: 1.24 Maintainer: scaro Status: ready -- reference id=ref.ctype titleFunzioni di tipo dei caratteri/title titleabbrevctype/titleabbrev -43,23 +43,17 section id=ctype.configuration titleConfigurazione a Runtime/title -para - Questa estensione non definisce nessuna istruzione di configurazione. -/para + no.config; /section section id=ctype.resources titleTipi di risorsa/title -para - Questa estensione non definisce nessun tipo di risorsa. -/para + no.config; /section section id=ctype.constants titleCostanti predefinite/title -para - Questa estensione non definisce nessuna costante. -/para + no.config; /section /partintro
[PHP-DOC] cvs: phpdoc /it/functions crack.xml
scaro Wed Apr 3 12:38:54 2002 EDT Modified files: /phpdoc/it/functionscrack.xml Log: Sync with EN Index: phpdoc/it/functions/crack.xml diff -u phpdoc/it/functions/crack.xml:1.4 phpdoc/it/functions/crack.xml:1.5 --- phpdoc/it/functions/crack.xml:1.4 Tue Mar 19 04:50:49 2002 +++ phpdoc/it/functions/crack.xml Wed Apr 3 12:38:52 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- EN-Revision: 1.9 Maintainer: scaro Status: ready -- +!-- EN-Revision: 1.10 Maintainer: scaro Status: ready -- reference id=ref.crack titleFunzioni di Crack/title titleabbrevFunzioni di Crack/titleabbrev -7,9 +7,9 partintro para id=crack.intro Queste funzioni permettono di usare la libreria CrackLib per testare la 'forza' -di una password. La 'forza' di una password egrave; testata attraverso un +di una password. La 'forza' di una password egrave; testata attraverso un controllo sulla lunghezza, sull'uso di maiuscole e minuscole ed un controllo -attraverso lo specifico dizionario di CrackLib. CrackLib daragrave; anche utili messaggi +attraverso lo specifico dizionario di CrackLib. CrackLib daragrave; anche utili +messaggi diagnostici che aiuteranno nel 'rafforzare' la password. /para -24,30 +24,24 section id=crack.installation titleInstallazione/title para - Per utilizzare queste funzioni, bisogna compilare il PHP con il supporto Crack + Per utilizzare queste funzioni, bisogna compilare il PHP con il supporto Crack usando l'opzione option role=configure--with-crack[=DIR]/option. /para /section section id=crack.configuration titleConfigurazione a Runtime/title -para - Questa estensione non definisce nessuna istruzione di configurazione. -/para + no.config; /section section id=crack.resources titleTipi di risorsa/title -para - Questa estensione non definisce nessun tipo di risorsa. -/para + no.config; /section section id=crack.constants titleCostanti predefinite/title -para - Questa estensione non definisce nessuna costante. -/para + no.config; /section section id=crack.examples
[PHP-DOC] cvs: phpdoc /en/faq obtaining.xml
cortesi Wed Apr 3 12:46:54 2002 EDT Modified files: /phpdoc/en/faq obtaining.xml Log: one commit to Uppercase the all Index: phpdoc/en/faq/obtaining.xml diff -u phpdoc/en/faq/obtaining.xml:1.13 phpdoc/en/faq/obtaining.xml:1.14 --- phpdoc/en/faq/obtaining.xml:1.13Sat Jan 12 05:38:23 2002 +++ phpdoc/en/faq/obtaining.xml Wed Apr 3 12:46:45 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.13 $ -- +!-- $Revision: 1.14 $ -- chapter id=faq.obtaining titleObtaining PHP/title titleabbrevObtaining PHP/titleabbrev -65,17 +65,17 itemizedlist listitem simpara -ulink url=faqurl.ldap;LDAP (unix)/ulink. +ulink url=faqurl.ldap;LDAP (Unix)/ulink. /simpara /listitem listitem simpara -ulink url=faqurl.ldap.mt;LDAP* (unix)/ulink. +ulink url=faqurl.ldap.mt;LDAP* (Unix)/ulink. /simpara /listitem listitem simpara -ulink url=faqurl.ldap.netscape;LDAP (unix/win)/ulink : +ulink url=faqurl.ldap.netscape;LDAP (Unix/Win)/ulink : Netscape Directory (LDAP) SDK 1.1. /simpara /listitem
[PHP-DOC] cvs: phpdoc /it/faq obtaining.xml
cortesi Wed Apr 3 12:47:58 2002 EDT Added files: /phpdoc/it/faq obtaining.xml Log: adding: EN 1.14 Index: phpdoc/it/faq/obtaining.xml +++ phpdoc/it/faq/obtaining.xml ?xml version=1.0 encoding=iso-8859-1? !-- EN-Revision: 1.14 Maintainer: cortesi Status: ready -- chapter id=faq.obtaining titleOttenere PHP/title titleabbrevOttenere PHP/titleabbrev para Questa sezione contiene dettagli riguardanti le modalità di download di PHP e argomenti relativi ai Sistemi Operativi. /para qandaset qandaentry id=faq.obtaining.where question paraDove posso ottenere PHP?/para /question answer para Si può scaricare PHP da uno qualunque dei membri del network di siti PHP. Questi possono essere trovati qui ulink url=faqurl.php;faqurl.php;/ulink. Si può anche usare il CVS anonymous per ottenere l'ultimissima versione del sorgente. Per maggiori informazioni, andare qui ulink url=faqurl.php.cvs;faqurl.php.cvs;/ulink. /para /answer /qandaentry qandaentry id=faq.obtaining.precompiled question paraSono disponibili versioni binarie pre-compilate?/para /question answer para Noi distribuiamo binari precompilati per i sistemi Windows, poiché non siamo in grado di compilare PHP per ognuna delle maggiori piattaforme Linux/Unix con ogni possibile combinazione di estensioni. Si noti che al giorno d'oggi molte distribuzioni Linux dispongono di PHP precompilato. I binari Windows possono essere scaricati dalla nostra pagina dei ulink url=faqurl.php.download;Download/ulink, per i binari per Linux, fare riferimento al sito web della vostra distribuzione. /para /answer /qandaentry qandaentry id=faq.obtaining.optional question para Dove posso prendere le librerie necessarie a compilare alcune delle estensioni opzionali di PHP? /para /question answer para note simpara Quelle segnate con * sono librerie non thread-safe e non dovrebbero essere usate con PHP installato come modulo nei web server multi-threaded sotto Windows (IIS, Netscape). Questo non è per il momento applicabile all'ambiente Unix. /simpara /note /para para itemizedlist listitem simpara ulink url=faqurl.ldap;LDAP (Unix)/ulink. /simpara /listitem listitem simpara ulink url=faqurl.ldap.mt;LDAP* (Unix)/ulink. /simpara /listitem listitem simpara ulink url=faqurl.ldap.netscape;LDAP (Unix/win)/ulink : Netscape Directory (LDAP) SDK 1.1. /simpara /listitem listitem simpara ulink url=faqurl.ldap.netscape;server LDAP libero/ulink. /simpara /listitem listitem simpara ulink url=faqurl.sleepycat;Berkeley DB2 (Unix/Win)/ulink : faqurl.sleepycat;. /simpara /listitem listitem simpara ulink url=faqurl.snmp;SNMP* (Unix): /ulink. /simpara /listitem listitem simpara ulink url=faqurl.gd;GD* (Unix/Win)/ulink. /simpara /listitem listitem simpara ulink url=faqurl.msql.win;mSQL* (Win)/ulink. /simpara /listitem listitem simpara ulink url=faqurl.msql.unix;mSQL* (Unix)/ulink. /simpara /listitem listitem simpara ulink url=faqurl.pgsql;PostgreSQL (Unix)/ulink. /simpara /listitem listitem simpara ulink url=faqurl.imap;IMAP* (Win/Unix)/ulink. /simpara /listitem listitem simpara ulink url=faqurl.sybase;Sybase-CT* (Linux, libc5)/ulink : Disponibile in locale. /simpara /listitem listitem simpara ulink url=faqurl.freetype;FreeType (libttf):/ulink. /simpara /listitem listitem simpara ulink url=faqurl.zlib;ZLib (Unix/Win32)/ulink. /simpara /listitem listitem simpara ulink url=faqurl.expat;parser XML expat (Unix/Win32)/ulink. /simpara /listitem listitem simpara ulink url=faqurl.pdflib;PDFLib/ulink. /simpara /listitem listitem simpara ulink url=faqurl.mcrypt;mcrypt/ulink. /simpara /listitem listitem simpara ulink url=faqurl.mhash;mhash/ulink. /simpara /listitem
[PHP-DOC] cvs: phpdoc / configure.in /scripts file-entities.php
hholzgraWed Apr 3 16:04:09 2002 EDT Added files: /phpdoc/scripts file-entities.php Modified files: /phpdoc configure.in Log: faster generation of file entities for translation support if php available (no big performance gain yet, but doing this with 3000+ splitted file justifies using php instead of shell) Index: phpdoc/configure.in diff -u phpdoc/configure.in:1.144 phpdoc/configure.in:1.145 --- phpdoc/configure.in:1.144 Mon Mar 11 19:57:46 2002 +++ phpdoc/configure.in Wed Apr 3 16:04:06 2002 -1,4 +1,4 -dnl $Id: configure.in,v 1.144 2002/03/12 00:57:46 torben Exp $ +dnl $Id: configure.in,v 1.145 2002/04/03 21:04:06 hholzgra Exp $ dnl autoconf initialisation AC_INIT() -733,6 +733,9 rm -f entities/chapters.ent DEPEND_FILES= echo !-- DON'T TOUCH - AUTOGENERATED BY ./configure -- entities/chapters.ent + +dnl {{{ ZendAPI entities + if test -d $ZENDAPI; then echo entities/chapters.ent echo !-- begin ZendAPI integration -- entities/chapters.ent -749,6 +752,11 echo entities/chapters.ent echo Zend part not found fi + +dnl }}} + +dnl {{{ .CHM entities + if test $CHMENABLED = yes; then echo !-- chmonly pages inclusion enabled -- entities/chapters.ent echo !ENTITY chmonly SYSTEM 'chmonly.xml' entities/chapters.ent -760,6 +768,11 echo entities/chapters.ent echo CHM inclusion disabled fi + +dnl }}} + +dnl {{{ install already splitted? + if test -f $srcdir/$LANGDIR/chapters/install.xml; then echo !-- old install.xml found in language dir -- entities/chapters.ent echo !ENTITY chapters.install SYSTEM '$srcdir/$LANGDIR/chapters/install.xml' entities/chapters.ent -771,22 +784,37 echo entities/chapters.ent echo Using the install part from installpart.xml fi + +dnl }}} + echo !-- Separated list of predefined constants. -- entities/chapters.ent echo !ENTITY appendices.reserved.constants SYSTEM 'reserved.constants.xml' entities/chapters.ent echo entities/chapters.ent -for file in `find $srcdir/en -name *.xml | sed -es%^$srcdir\/en\/%%g | sort` -do - name=`echo $file | sed -es/\//./g -es/.xml$//g -e s/_/-/g` - if test -f $srcdir/$LANGDIR/$file - then -file=$srcdir/$LANGDIR/$file - else -file=$srcdir/en/$file -echo Untranslated $file (`wc -l $file | tr -d ' '` lines) - fi - DEPEND_FILES=$DEPEND_FILES $file - echo !ENTITY $name SYSTEM \$file\ entities/chapters.ent -done + +dnl {{{ check configured language files against english tree + +if test $PHP != no +then + $PHP -q $srcdir/scripts/file-entities.php $srcdir $LANGDIR +entities/chapters.ent +else + for file in `find $srcdir/en -name *.xml | sed -es%^$srcdir\/en\/%%g | sort` + do +name=`echo $file | sed -es/\//./g -es/.xml$//g -e s/_/-/g` +if test -f $srcdir/$LANGDIR/$file +then + file=$srcdir/$LANGDIR/$file +else + file=$srcdir/en/$file + echo Untranslated $file (`wc -l $file | tr -d ' '` lines) +fi +DEPEND_FILES=$DEPEND_FILES $file +echo !ENTITY $name SYSTEM \$file\ entities/chapters.ent + done +fi + +dnl }}} + + echo !ENTITY global.function-index SYSTEM \./funcindex.xml\ entities/chapters.ent chmod a-w entities/chapters.ent Index: phpdoc/scripts/file-entities.php +++ phpdoc/scripts/file-entities.php ?php /* Scan directory tree against original language tree and define file entities for translated files where present with original untranslated files as fallback where no translated version exists */ ob_end_clean(); ob_implicit_flush(); $base_dir = abs_path($argv[1]); if(php_sapi_name!=cli) $base_dir=ereg_replace(/scripts$,,$base_dir); $orig_dir = $base_dir./en; $trans_dir = $base_dir./.$argv[2]; process($orig_dir,$trans_dir,$orig_dir); function abs_path($path) { if($path{0} == '/') return $path; $absdirs = explode(/,getcwd()); $dirs= explode(/,$path); foreach($dirs as $dir) { if(empty($dir) or $dir==.) continue; else if($dir==..) array_pop($absdirs); else array_push($absdirs,$dir); } return join(/,$absdirs); } function process($work_dir, $trans_dir, $orig_dir) { $trans_path = str_replace($orig_dir,$trans_dir,$work_dir); $dh = opendir($work_dir); if(!$dh) return false; while(false !== ($file = readdir($dh))) { if($file==.||$file==..||$file==CVS) continue; if(is_dir($work_dir./.$file)) process($work_dir./.$file, $trans_dir, $orig_dir); if(ereg(\\.xml$,$file)) { $name = str_replace($orig_dir/,,$work_dir./.ereg_replace(\\.xml$,,$file)); $name = str_replace(/,.,$name); $name = str_replace(_,-,$name); if(file_exists($trans_path/$file)) { $path= $trans_path/$file; }
[PHP-DOC] cvs: phpdoc /scripts reference-split.php
hholzgraWed Apr 3 16:05:14 2002 EDT Added files: /phpdoc/scripts reference-split.php Log: ... as now i face the final curtain ... ;) Index: phpdoc/scripts/reference-split.php +++ phpdoc/scripts/reference-split.php # todo create different outdir pathes script language=php set_time_limit(0); error_reporting(E_ALL); ob_implicit_flush(); # {{{ convert_file function convert_file($dir,$file) { echo convert $dir $file\n; // open input stream $fin = fopen($dir/$file,r); // get extension basename $name = str_replace(.xml,,$file); $name = str_replace(_,-,$name); // get language from path $parts=explode(/,$dir); $lang=$parts[1]; // create directories for generated extension files $base=./$lang/reference/$name; if(!file_exists(./$lang/reference)) mkdir(./$lang/reference,0777); if(file_exists($base)) exec(rm -rf $base); // cleanup mkdir($base,0777); mkdir($base/functions,0777); // append filename to function entity list $fent= fopen(functions.ent,a); fwrite($fent,!ENTITY $name.entities SYSTEM '$base/functions.ent'\n); fclose($fent); // push dir $olddir = getcwd(); chdir($base); // create master documentation file $fmaster= fopen(reference.xml,w); // current output stream is master file $fout = $fmaster; // initialize entity collector $entity = array(); // process input file $flag=false; $xmlhead=?xml version='1.0' encoding='iso-8859-1' ?\n; $lineno=0; while ($line = fgets($fin, 4096)) { $lineno++; $line = ereg_replace((/?)sect[123456],\\1section,$line); $line = str_replace('../../manual.ced','../../../manual.ced',$line); if(strstr($line,(refentry ))) { // start of function description // extract id ereg(id=['\](.*)['\],$line,$matches); $id=str_replace(_,-,$matches[1]); $id=ereg_replace(^function\.,,$id); // register entity $entity[]=$base.$id;; // open new output stream for this function $fslave=fopen(functions/$id.xml,w); $fout=$fslave; fwrite($fout,$xmlhead); fwrite($fout,$line); } else if(strstr($line,(partintro))) { fwrite($fout,preg_replace(/partintro(.*?)/,section\\1titleIntroduction/title\n,$line)); } else if(strstr($line,(/partintro))) { fwrite($fout,/section\n); } else if(strstr($line,(funcsynopsis))) { $xml=$xmlhead.$line; do { $line=fgets($fin,4096); $xml.=$line; } while(!strstr($line,(/funcsynopsis))); $result = $xml; if(is_string($result)) fwrite($fout,strstr($result,\n)); else { echo $xml; } } else if (strstr($line,(?xml))($lineno==1)) { $xmlhead=$line; fwrite($fout,$line); } else if (strstr($line,(/refentry))) { // end of function description // close output stream and switch fwrite($fout,$line); if(is_resource($fslave)) { fwrite($fout,' !-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:../../../../manual.ced sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -- '); fclose($fslave); $fout = $fmaster; } } else if (strstr($line,(reference ))) { fwrite($fout,str_replace(reference,section role='reference' ,$line)); } else if (strstr($line,(/reference))) { // end of master file // write entity file sort($entity); // generate entity include for entity file fwrite($fout,sectiontitleFunctions/title$name.entities;/section\n\n);
[PHP-DOC] cvs: phpdoc /scripts reference-split.php
hholzgraWed Apr 3 16:24:10 2002 EDT Modified files: /phpdoc/scripts reference-split.php Log: just to please mark Index: phpdoc/scripts/reference-split.php diff -u phpdoc/scripts/reference-split.php:1.1 phpdoc/scripts/reference-split.php:1.2 --- phpdoc/scripts/reference-split.php:1.1 Wed Apr 3 16:05:14 2002 +++ phpdoc/scripts/reference-split.php Wed Apr 3 16:24:09 2002 -1,6 +1,4 -# todo create different outdir pathes - -script language=php +?php set_time_limit(0); error_reporting(E_ALL); -196,4 +194,4 // convert the current directory convert_dir(.); -/script +?
[PHP-DOC] cvs: phpdoc /scripts reference-split.php
hholzgraWed Apr 3 17:21:31 2002 EDT Modified files: /phpdoc/scripts reference-split.php Log: adding cvs query function needed for revcheck support Index: phpdoc/scripts/reference-split.php diff -u phpdoc/scripts/reference-split.php:1.2 phpdoc/scripts/reference-split.php:1.3 --- phpdoc/scripts/reference-split.php:1.2 Wed Apr 3 16:24:09 2002 +++ phpdoc/scripts/reference-split.php Wed Apr 3 17:21:30 2002 -4,6 +4,34 error_reporting(E_ALL); ob_implicit_flush(); +# {{{ cvs stuff + + function cvs_max_rev($filename,$start,$end) { +static $lastfile = ; +static $array = array(); + +if($filename!=$lastfile) { + $fp=popen(cvs annotate $filename 2/dev/null,r); + $n=0; + if(!$fp) die(gaga); ; + $array = array(); + $lastfile = $filename; + while(!feof($fp)) { +$line = fgets($fp); +if(empty($line)) continue; +$tokens=explode( ,$line); +$rev = $tokens[0]; +$array[++$n]=explode(.,$rev); + } + pclose($fp); +} +$max=0; +for($n=$start;$n=$end;$n++) + if($max $array[$n][1]) $max = $array[$n][1]; +return $max; + } +# }}} + # {{{ convert_file function convert_file($dir,$file) { -190,6 +218,7 } # }}} + // convert the current directory convert_dir(.);
[PHP-DOC] predefined variable use
All throughout the manual predefined variables are used. The most common format (currently) is simply relying on register_globals and prepending a $ to them, such as $PHP_SELF and $DOCUMENT_ROOT. Because 4.2.0 defaults register_globals off, this will change. My question is, do we use $HTTP_SERVER_VARS or $_SERVER for these. My opinion is we use $_SERVER yet not mention it's specific to 4.1.0+ everywhere as that's a ton of little notes. Too many. But, this is still an issue, how should it be addressed? If $_SERVER simply linked to the superglobals page, that should be enough, right? Or can we easily do that, how? Or is it time to not worry about it. Regards, Philip Olson p.s. imho predefined server variables should remain registered by default in 4.2.0 and beyond. ;)
[PHP-DOC] cvs: phpdoc /de/functions ldap.xml
betzThu Apr 4 02:30:45 2002 EDT Modified files: /phpdoc/de/functionsldap.xml Log: sync to en Index: phpdoc/de/functions/ldap.xml diff -u phpdoc/de/functions/ldap.xml:1.19 phpdoc/de/functions/ldap.xml:1.20 --- phpdoc/de/functions/ldap.xml:1.19 Mon Mar 25 16:53:55 2002 +++ phpdoc/de/functions/ldap.xmlThu Apr 4 02:30:45 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- EN-Revision: 1.43 Maintainer: betz Status: ready -- +!-- EN-Revision: 1.44 Maintainer: betz Status: ready -- reference id=ref.ldap titleLDAP Funktionen/title titleabbrevLDAP/titleabbrev -631,7 +631,7 konvertiert werden. /para para - Solange Sie die Stufe der Fehlerwarnungen in Ihrer php.ini nicht + Solange Sie die Stufe der Fehlerwarnungen in Ihrer php.ini; nicht herabsetzen oder vor Ihre LDAP Komanndos ein (at) setzen um die Ausgabe von Fehlermeldungen zu unterdrücken, werden die aufgetretenen Fehler auch in Ihrer HTML Ausgabe zu sehen sein. -694,7 +694,7 /para para Solange Sie die Stufe der Fehlerwarnungen in Ihrer - filenamephp.ini/filename nicht herabsetzen oder vor Ihre + php.ini; nicht herabsetzen oder vor Ihre LDAP Komanndos ein literal/literal (at) setzen, um die Ausgabe von Fehlermeldungen zu unterdrücken, werden die aufgetretenen Fehler auch in Ihrer HTML Ausgabe zu sehen sein.
[PHP-DOC] cvs: phpdoc /de Translators
betzThu Apr 4 02:32:42 2002 EDT Modified files: /phpdoc/de Translators Log: ldap.xml uptodate Index: phpdoc/de/Translators diff -u phpdoc/de/Translators:1.291 phpdoc/de/Translators:1.292 --- phpdoc/de/Translators:1.291 Thu Mar 28 18:04:06 2002 +++ phpdoc/de/Translators Thu Apr 4 02:32:42 2002 -136,7 +136,7 ingres_ii.xml Cornelia Boenigkfertig (bis V. 1.10) ircg.xmlGeorg Richter fertig (bis V. 1.21) java.xmlSebastian Bergmann fertig -ldap.xmlFriedhelm Betz fertig (bis 1.43) +ldap.xmlFriedhelm Betz fertig (bis 1.44) mail.xmlUwe Steinmann fertig mailparse.xml math.xmlHartmut Holzgraefe fertig
[PHP-DOC] cvs: phpdoc /scripts reference-split.php
hholzgraThu Apr 4 03:15:10 2002 EDT Modified files: /phpdoc/scripts reference-split.php Log: revcheck issues solved, almost done :) Index: phpdoc/scripts/reference-split.php diff -u phpdoc/scripts/reference-split.php:1.3 phpdoc/scripts/reference-split.php:1.4 --- phpdoc/scripts/reference-split.php:1.3 Wed Apr 3 17:21:30 2002 +++ phpdoc/scripts/reference-split.php Thu Apr 4 03:15:09 2002 -4,30 +4,48 error_reporting(E_ALL); ob_implicit_flush(); +$en_revs = array(); + # {{{ cvs stuff + // compare two revision numbter arrays + function rev_cmp($a1,$a2) { +foreach($a1 as $key=$val) { + if($a1[$key]$a2[$key]) return 1; + if($a1[$key]$a2[$key]) return -1; +} +if(count($a1)count($a2)) return 1; +if(count($a1)count($a2)) return -1; +return 0; + } + + // get max. revision for a region in a cvs file + // (witch simple data caching) function cvs_max_rev($filename,$start,$end) { static $lastfile = ; static $array = array(); if($filename!=$lastfile) { - $fp=popen(cvs annotate $filename 2/dev/null,r); + $cmd=/usr/bin/cvs annotate $filename 2/dev/null; + $fp=popen($cmd,r); + if(!$fp) return false; + $n=0; - if(!$fp) die(gaga); ; $array = array(); $lastfile = $filename; + while(!feof($fp)) { $line = fgets($fp); if(empty($line)) continue; $tokens=explode( ,$line); -$rev = $tokens[0]; -$array[++$n]=explode(.,$rev); +$array[++$n]=explode(.,$tokens[0]); } pclose($fp); } -$max=0; + +$max=array(); for($n=$start;$n=$end;$n++) - if($max $array[$n][1]) $max = $array[$n][1]; + if(rev_cmp($max,$array[$n])) $max = $array[$n]; return $max; } # }}} -35,6 +53,8 # {{{ convert_file function convert_file($dir,$file) { + global $en_revs; + echo convert $dir $file\n; // open input stream -56,16 +76,12 mkdir($base/functions,0777); // append filename to function entity list - $fent= fopen(functions.ent,a); + $fent= fopen($base/functions.ent,a); fwrite($fent,!ENTITY $name.entities SYSTEM '$base/functions.ent'\n); fclose($fent); - // push dir - $olddir = getcwd(); - chdir($base); - // create master documentation file - $fmaster= fopen(reference.xml,w); + $fmaster= fopen($base/reference.xml,w); // current output stream is master file $fout = $fmaster; -74,18 +90,33 $entity = array(); // process input file - $flag=false; - $xmlhead=?xml version='1.0' encoding='iso-8859-1' ?\n; - $lineno=0; - while ($line = fgets($fin, 4096)) { + $lineno = 0; + $lastline_empty = false; + $xmlhead = ?xml version='1.0' encoding='iso-8859-1' ?\n; //default + $en_revision = false; + $maintainer = ; + $trans_status = ; + + while ($line = fgets($fin)) { $lineno++; +// convert numbered sections to generic ones, prep. for hierachical ref $line = ereg_replace((/?)sect[123456],\\1section,$line); + +// file will move one level down, so path to emacs dtd-file needs one more .. $line = str_replace('../../manual.ced','../../../manual.ced',$line); - if(strstr($line,(refentry ))) { - // start of function description - + if (strstr($line,(?xml))($lineno==1)) { // remember xml header + $xmlhead=$line; + fwrite($fout,$line); +} elseif (strstr($line,!-- EN-Revision:)) { + $array = explode( ,$line); + foreach($array as $key = $value) { +if($value==EN-Revision:) $en_revision = explode(.,$array[$key+1]); +if($value==Maintainer:) $maintainer = $array[$key+1]; +if($value==Status:) $trans_status = $array[$key+1]; + } + } elseif(strstr($line,(refentry ))) { // start of function +description // extract id ereg(id=['\](.*)['\],$line,$matches); $id=str_replace(_,-,$matches[1]); -95,36 +126,39 $entity[]=$base.$id;; // open new output stream for this function - $fslave=fopen(functions/$id.xml,w); + $fslave=fopen($base/functions/$id.xml,w); $fout=$fslave; + + // xml header fwrite($fout,$xmlhead); - fwrite($fout,$line); - } else if(strstr($line,(partintro))) { - fwrite($fout,preg_replace(/partintro(.*?)/,section\\1titleIntroduction/title\n,$line)); - } else if(strstr($line,(/partintro))) { - fwrite($fout,/section\n); - } else if(strstr($line,(funcsynopsis))) { - -