[PHP-DOC] cvs: phpdoc /en/functions datetime.xml

2001-03-19 Thread Jesus M. Castagnetto

jmcastagnetto   Mon Mar 19 16:57:22 2001 EDT

  Modified files:  
/phpdoc/en/functionsdatetime.xml 
  Log:
  now, really fixed example in microtime()
  
  
Index: phpdoc/en/functions/datetime.xml
diff -u phpdoc/en/functions/datetime.xml:1.34 phpdoc/en/functions/datetime.xml:1.35
--- phpdoc/en/functions/datetime.xml:1.34   Sat Mar 17 17:37:02 2001
+++ phpdoc/en/functions/datetime.xmlMon Mar 19 16:57:21 2001
@@ -636,7 +636,7 @@
   microtime example
   
 function getmicrotime(){ 
-list($sec, $usec) = explode(" ",microtime()); 
+list($usec, $sec) = explode(" ",microtime()); 
 return ((float)$usec + (float)$sec); 
 } 
 





Re: [PHP-DOC] cvs: phpdoc /fr/functions session.xml

2001-03-19 Thread Jouni Ahto



On Mon, 19 Mar 2001, Egon Schmid (@work) wrote:

> Jouni Ahto wrote:
> > 
> > In general, should we be using ...,
> > or the simpler form ...? Both are valid.
> 
> I don't know but I think the appearance could be different. Compare the
> PDF or PostScript output for getallheaders() in the German manual. The
> paras following the examples are wrong indented.

Yes, I see. Print versions of the DSSSL-stylesheets seem to have a
problem. When any block element, like , has a  inside it, the
whole block gets intended. Also, the more there are block elements inside
block elements, the more extra vertical white space gets generated after
the outermost one is closed.

So, I think my opinion will be: always use the simplest valid alternative.

-- Jouni




[PHP-DOC] cvs: phpdoc /en/functions pdf.xml

2001-03-19 Thread Jani Taskinen

sniper  Mon Mar 19 13:04:26 2001 EDT

  Modified files:  
/phpdoc/en/functionspdf.xml 
  Log:
  Added an example of creating PDF documents in memory.
  
  
Index: phpdoc/en/functions/pdf.xml
diff -u phpdoc/en/functions/pdf.xml:1.39 phpdoc/en/functions/pdf.xml:1.40
--- phpdoc/en/functions/pdf.xml:1.39Mon Mar  5 08:25:05 2001
+++ phpdoc/en/functions/pdf.xml Mon Mar 19 13:04:26 2001
@@ -1530,6 +1530,36 @@
   must be fetched by the client with the
   PDF_get_buffer function.
 
+
+ The following example shows how to create a pdf document in memory
+ and how to output it correctly.
+ 
+  Creating a PDF document in memory
+  
+
+  
+ 
+

   
 





Re: [PHP-DOC] cvs: phpdoc /fr/functions session.xml

2001-03-19 Thread Egon Schmid (@work)

Jouni Ahto wrote:
> 
> On Mon, 19 Mar 2001, Egon Schmid wrote:
> 
> > eschmid   Mon Mar 19 09:18:07 2001 EDT
> >
> >   Modified files:
> > /phpdoc/fr/functions  session.xml
> >   Log:
> >   Added two missing paras.
> 
> In general, should we be using ...,
> or the simpler form ...? Both are valid.

I don't know but I think the appearance could be different. Compare the
PDF or PostScript output for getallheaders() in the German manual. The
paras following the examples are wrong indented.

-Egon

-- 
SIX Offene Systeme GmbH   ·Stuttgart  -  Berlin 
Sielminger Straße 63   ·D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164 · Fax +49 711 9909199 http://www.six.de
Besuchen Sie uns auf der CeBIT 2001,  Halle 6,  Stand F62/4



Re: [PHP-DOC] cvs: phpdoc /fr/functions session.xml

2001-03-19 Thread Jouni Ahto



On Mon, 19 Mar 2001, Egon Schmid wrote:

> eschmid   Mon Mar 19 09:18:07 2001 EDT
> 
>   Modified files:  
> /phpdoc/fr/functions  session.xml 
>   Log:
>   Added two missing paras.

In general, should we be using ...,
or the simpler form ...? Both are valid.

-- Jouni

> Index: phpdoc/fr/functions/session.xml
> diff -u phpdoc/fr/functions/session.xml:1.10 phpdoc/fr/functions/session.xml:1.11
> --- phpdoc/fr/functions/session.xml:1.10  Mon Mar 19 09:01:15 2001
> +++ phpdoc/fr/functions/session.xml   Mon Mar 19 09:18:06 2001
> @@ -126,15 +126,17 @@
>  session_name=session_id, ou bien, c'est
>  une chaîne vide.
> 
> -
> - 
> +   
> +
> + 
>La fonction qui gérera l'écriture des données ne sera 
>appelée
>qu'une fois le script aura envoyé toutes ses données. Ainsi,
>les affichages tentés par cette fonction ne pourront jamais
>être recus par le navigateur. Si un tel affichage est nécessaire,
>il est conseillé d'écrire les debugs dans un fichier.
> - 
> -
> + 
> +
> +   
> 
>  L'exemple suivant montre comment enregistrer une variable, et comment relier
>  correctement des pages avec SID.
> @@ -161,11 +163,13 @@
>  --enable-trans-sid a été utilisé
>  pour compiler PHP.
> 
> -
> +   
>  
> + 
>   Les URL absolues sont considérées comme des sites externes,
>   et PHP ne leur attribuera pas le SID, qui pourrait représenter
>   un risque de trou de sécurité.
> + 
>  
> 
> 
> 
> 




[PHP-DOC] cvs: phpdoc /fr/functions session.xml

2001-03-19 Thread Egon Schmid

eschmid Mon Mar 19 09:18:07 2001 EDT

  Modified files:  
/phpdoc/fr/functionssession.xml 
  Log:
  Added two missing paras.
  
Index: phpdoc/fr/functions/session.xml
diff -u phpdoc/fr/functions/session.xml:1.10 phpdoc/fr/functions/session.xml:1.11
--- phpdoc/fr/functions/session.xml:1.10Mon Mar 19 09:01:15 2001
+++ phpdoc/fr/functions/session.xml Mon Mar 19 09:18:06 2001
@@ -126,15 +126,17 @@
 session_name=session_id, ou bien, c'est
 une chaîne vide.

-
- 
+   
+
+ 
   La fonction qui gérera l'écriture des données ne sera 
appelée
   qu'une fois le script aura envoyé toutes ses données. Ainsi,
   les affichages tentés par cette fonction ne pourront jamais
   être recus par le navigateur. Si un tel affichage est nécessaire,
   il est conseillé d'écrire les debugs dans un fichier.
- 
-
+ 
+
+   

 L'exemple suivant montre comment enregistrer une variable, et comment relier
 correctement des pages avec SID.
@@ -161,11 +163,13 @@
 --enable-trans-sid a été utilisé
 pour compiler PHP.

-
+   
 
+ 
  Les URL absolues sont considérées comme des sites externes,
  et PHP ne leur attribuera pas le SID, qui pourrait représenter
  un risque de trou de sécurité.
+ 
 







[PHP-DOC] cvs: phpdoc /fr/chapters install.xml

2001-03-19 Thread Damien Seguy

damsMon Mar 19 09:12:06 2001 EDT

  Modified files:  
/phpdoc/fr/chapters install.xml 
  Log:
  Adding Openbsd's section.
  
Index: phpdoc/fr/chapters/install.xml
diff -u phpdoc/fr/chapters/install.xml:1.18 phpdoc/fr/chapters/install.xml:1.19
--- phpdoc/fr/chapters/install.xml:1.18 Tue Feb 27 03:56:02 2001
+++ phpdoc/fr/chapters/install.xml  Mon Mar 19 09:12:06 2001
@@ -134,8 +134,8 @@
 
  Lorsque PHP est configuré, vous êtes prêts à
  compiler l'éxécutable CGI. La commande make
- doit prendre tout en charge. Si ce n'est pas le cas et que vous restez 
- bloqué, reportez-vous aux 
+ doit prendre tout en charge. Si ce n'est pas le cas et que vous restez
+ bloqué, reportez-vous aux
  problèmes courants.
 

@@ -295,6 +295,50 @@
   
  
 
+
+ Installations Unix/OpenBSD
+ 
+  Cette section contient les notes spécifiques à l'installation
+  de PHP sous OpenBSD.
+ 
+ 
+  Utilisation des ports
+   
+Ceci est la méthode recommandée d'installation de PHP sous
+OpenBSD, car elle prend en compte les dernières modifications et
+mises à jour de sécurité. Pour utiliser cette 
+méthode, assurez
+vous que vous avez bien
+ports tree récent. Choisissez
+alors simplement la version que vous souhaitez installer, et utilisez
+la commande make install.  Ci-dessous, voici un
+exemple.
+   
+   
+Exemple d'installation de PHP sous OpenBSD avec Ports
+
+$ cd /usr/ports/www/php4
+$ make show VARNAME=FLAVORS
+ (choose which flavors you want from the list)
+$ make install FLAVOR="imap gettext ldap mysql gd pdflib"
+$ php4-enable
+
+   
+ 
+ 
+  Utilisation des Packages
+  
+   Il existe des packages pré-compilé disponible en
+   téléchargement à OpenBSD.
+   Elles s'intègrent automatiquement avec la version d'Apache
+   installée sur votre OS. Cependant, comme il y a un
+   grand nombre d'options (appelées flavors)
+   disponibles, vous trouverez peut-être plus facile de
+   le compiler à partir de l'arbre de ports.
+   Lisez le manuel packages(7)
+   pour plus de détails sur les packages disponbiles (en anglais).
+  
+ 
+
 
  Installation sous Mac OS X
  
@@ -304,14 +348,14 @@
  
   Utilisation des packages
   
-   Il existe quelques version pré-packagée et 
pré-compilée de PHP pour
-   Mac OS X. Elles permettent de réaliser rapidement des installations
-   standard, mais si vous avez des configurations personnelles,
-   (comme un serveur sécurisé SSL ou un pilote de base de données
-   exotique), vous devrez compiler PHP et/ou votre serveur web
-   vous-même. Si vous n'êtes pas familier avec la compilation de
-   vos propres logiciels, il vaut mieux rechercher le package qui pourra
-   répondre à vos besoins.
+   Il existe quelques version pré-packagée et
+   pré-compilée de PHP pour Mac OS X. Elles permettent de
+   réaliser rapidement des installations standard, mais si vous
+   avez des configurations personnelles, (comme un serveur sécurisé
+   SSL ou un pilote de base de données éxotique), vous devrez compiler
+   PHP et/ou votre serveur web vous-même. Si vous n'êtes pas
+   familier avec la compilation de vos propres logiciels, il vaut mieux
+   rechercher le package qui pourra répondre à vos besoins.
Lightyear Design propose une
version pré-compilé de PHP pour OS X tout comme
Tenon Intersystems.
@@ -921,7 +965,7 @@
   d'installation d'iODBC (par défaut, /usr/local).
  
  
-  Cette fonctionnalité a d'abord été 
+  Cette fonctionnalité a d'abord été
   développée avec le gestionnaire
   iODBC Driver Manager, un pilote ODBC librement distribuable, qui
   fonctionne sous divers UNIX.
@@ -940,15 +984,15 @@
  
   PHP 3, PHP 4: Inclus le support ODBC, avec une librairie tierce.
   Le paramètre DIR est le nom du dossier d'installation de celle
-  librairie. Par défaut, il vaut 
+  librairie. Par défaut, il vaut
   /usr/local.
  
  
   Cette option implique qus vous avez défini CUSTOM_ODBC_LIBS
-  lorsque vous éxécutez le script de configuration. 
-  Vous devez aussi avoir un entête odbc.h valide dans vos 
-  dossiers d'inclusion. Si vous n'en avez pas, créez le, et 
-  ajoutez-y vos entêtes spécifiques. Votre entête peut 
+  lorsque vous éxécutez le script de configuration.
+  Vous devez aussi avoir un entête odbc.h valide dans vos
+  dossiers d'inclusion. Si vous n'en avez pas, créez le, et
+  ajoutez-y vos entêtes spécifiques. Votre entête peut
   aussi réclamer d'autres définitions, surtout s'il
   est multi-plate-forme. Définissez les dans CFLAGS.
  
@@ -1919,7 +1963,7 @@
 PHP 3: Option non disponible en PHP 3


-PHP 4: Type de librairie d'expressions régulières : 
+PHP 4: Type de librairie d'expressions régulières :
 système, apache, php

   
@@ -1958,7 +2002,7 @@
   
   

-PHP 3: Inactive la libraire d'expressi

[PHP-DOC] cvs: phpdoc /fr/language control-structures.xml functions.xml oop.xml variables.xml

2001-03-19 Thread Damien Seguy

damsMon Mar 19 09:06:31 2001 EDT

  Modified files:  
/phpdoc/fr/language control-structures.xml functions.xml oop.xml 
variables.xml 
  Log:
  Keeping up with Jesus's coffee.
  

Index: phpdoc/fr/language/control-structures.xml
diff -u phpdoc/fr/language/control-structures.xml:1.11 
phpdoc/fr/language/control-structures.xml:1.12
--- phpdoc/fr/language/control-structures.xml:1.11  Thu Mar  8 05:55:38 2001
+++ phpdoc/fr/language/control-structures.xml   Mon Mar 19 09:06:31 2001
@@ -525,7 +525,7 @@
 $a = array (1, 2, 3, 17);
 $i = 0; /* pour affichage seulement*/
 foreach($a as $v) {
-print "\$a[$i] => $k.\n";
+print "\$a[$i] => $v.\n";
 }
 /* exemple 1: valeur et clé */
 $a = array (
Index: phpdoc/fr/language/functions.xml
diff -u phpdoc/fr/language/functions.xml:1.6 phpdoc/fr/language/functions.xml:1.7
--- phpdoc/fr/language/functions.xml:1.6Tue Feb 27 03:57:41 2001
+++ phpdoc/fr/language/functions.xmlMon Mar 19 09:06:31 2001
@@ -127,21 +127,23 @@
  
 
 
-La fonction ci-dessus affichera :
+ La fonction ci-dessus affichera :
  
 Servir un verre de ricard.
 Servir un verre de whisky.
  
 
 
-   La valeur par défaut d'un argument doit
-   obligatoirement être une constante, et ne peut être
-   ni une variable ou ni un membre de classe.
+ La valeur par défaut d'un argument doit
+ obligatoirement être une constante, et ne peut être
+ ni une variable ou ni un membre de classe.
 
 
- Il est à noter que vous utilisez les arguments par défaut,
- la valeur par défaut doit se trouver du côté droit du
- signe '='; sinon, cela ne fonctionnera pas. Considérons le code suivant :
+ Il est à noter que si vous utilisez des arguments avec
+ valeur par défaut avec d'autres sans valeur par défaut,
+ les premiers doivent être placés à la suite de tous les 
+paramètres sans
+ valeur par défaut. Sinon, cela ne fonctionnera pas.
+ Considérons le code suivant :
  
   
 echoName();
 }
-
 function echoName() {
 echo "
",$this->Name; } - function setName($name) { $this->Name = $name; } @@ -226,83 +224,75 @@ -Vérifions maintenant qu'il y a une différence entre $bar1 -qui a été créé avec = et $bar2 qui a été -créé avec l'opérateur de référence =& : +Vérifions maintenant qu'il y a une différence entre +$bar1 +qui a été créé avec = et +$bar2 qui a été +créé avec l'opérateur de référence +=& : echoName(); $globalref[0]->echoName(); - /* affiche : -crée dans le constructeur -crée dans le constructeur -crée dans le constructeur */ - -$bar2 =&new foo('crée dans le constructeur'); +crée dans le constructeur +crée dans le constructeur +crée dans le constructeur */ +$bar2 =&new foo('crée dans le constructeur'); $bar2->echoName(); $globalref[1]->echoName(); - /* affiche : -crée dans le constructeur -crée dans le constructeur -crée dans le constructeur */ +crée dans le constructeur +crée dans le constructeur +crée dans le constructeur */ ?> -Apparement, il n'y a pas de différence, mais en fait, il y en a une -significative : $bar1 et $globalref[0] -ne sont pas référencées, ces deux variables sont différentes. -Cela est du au fait que l'opérateur "new"ne retourne par de référence, +Apparement, il n'y a pas de différence, mais en fait, il y en a une +significative : $bar1 et $globalref[0] +ne sont pas référencées, ces deux variables sont +différentes. +Cela est du au fait que l'opérateur "new"ne retourne par de +référence, mais retourne une copie. Il n'y a aucune perte de p

[PHP-DOC] cvs: phpdoc /fr/functions array.xml curl.xml datetime.xml filepro.xml filesystem.xml hw.xml ifx.xml imap.xml info.xml ingres_ii.xml math.xml mcal.xml misc.xml msql.xml mysql.xml network.xml nis.xml outcontrol.xml pdf.xml sem.xml sesam.xml session.xml strings.xml swf.xml sybase.xml uodbc.xml var.xml wddx.xml xml.xml xslt.xml yaz.xml

2001-03-19 Thread Damien Seguy

damsMon Mar 19 09:01:16 2001 EDT

  Modified files:  
/phpdoc/fr/functionsarray.xml curl.xml datetime.xml filepro.xml 
filesystem.xml hw.xml ifx.xml imap.xml 
info.xml ingres_ii.xml math.xml mcal.xml 
misc.xml msql.xml mysql.xml network.xml 
nis.xml outcontrol.xml pdf.xml sem.xml 
sesam.xml session.xml strings.xml swf.xml 
sybase.xml uodbc.xml var.xml wddx.xml xml.xml 
xslt.xml yaz.xml 
  Log:
  Keeping up with Jesus's coffee.
  

Index: phpdoc/fr/functions/array.xml
diff -u phpdoc/fr/functions/array.xml:1.26 phpdoc/fr/functions/array.xml:1.27
--- phpdoc/fr/functions/array.xml:1.26  Wed Mar  7 10:08:43 2001
+++ phpdoc/fr/functions/array.xml   Mon Mar 19 09:01:14 2001
@@ -648,7 +648,7 @@

 array_pop
 
-  Dépile un élément de la fin d'un tableau
+ Dépile un élément de la fin d'un tableau
 


@@ -662,7 +662,9 @@
 
  array_pop dépile et retourne le dernier
  élément du tableau array, le
- raccourcissant d'un élément.
+ raccourcissant d'un élément. Si array
+ est vide, ou n'est pas un tableau, array_pop
+ retourne NULL.
 
 
  
@@ -680,8 +682,9 @@
  
 
 
- Voir aussi array_push,
- array_shift, et
+ Voir aussi
+ array_push,
+ array_shift et
  array_unshift.
  
   
@@ -740,8 +743,9 @@
  et 3.
 
 
- Voir aussi: array_pop,
- array_shift, et
+ Voir aussi
+ array_pop,
+ array_shift et
  array_unshift.
  
   
@@ -872,6 +876,8 @@
  array_shift extrait la première valeur d'un
  tableau et la retourne, en raccourcissant le tableau d'un élément,
  et en déplacant tous les éléments vers le bas.
+ Si array est vide, ou n'est pas un tableau,
+ array_shift retourne NULL.
 
 
  
@@ -2086,7 +2092,7 @@
 
  
   void list
- 
+  void
  
 
 
Index: phpdoc/fr/functions/curl.xml
diff -u phpdoc/fr/functions/curl.xml:1.4 phpdoc/fr/functions/curl.xml:1.5
--- phpdoc/fr/functions/curl.xml:1.4Tue Mar 13 05:37:01 2001
+++ phpdoc/fr/functions/curl.xmlMon Mar 19 09:01:14 2001
@@ -501,7 +501,7 @@
   string
curl_version
   
-  
+  void
  
 
 
Index: phpdoc/fr/functions/datetime.xml
diff -u phpdoc/fr/functions/datetime.xml:1.17 phpdoc/fr/functions/datetime.xml:1.18
--- phpdoc/fr/functions/datetime.xml:1.17   Tue Mar 13 05:37:01 2001
+++ phpdoc/fr/functions/datetime.xmlMon Mar 19 09:01:14 2001
@@ -171,6 +171,7 @@
   

 r - Format de date RFC 822; i.e. "Thu, 21 Dec 2000 16:01:07 +0200"
+(ajouté en PHP 4.0.4)

   
   
@@ -642,7 +643,7 @@
 

[PHP-DOC] cvs: phpdoc /fr/appendices reserved.xml

2001-03-19 Thread Damien Seguy

damsMon Mar 19 08:44:22 2001 EDT

  Modified files:  
/phpdoc/fr/appendices   reserved.xml 
  Log:
  Added news resources. English Version is behind, so wait for translation.Help from 
Jouni's perfect. :-)
  
Index: phpdoc/fr/appendices/reserved.xml
diff -u phpdoc/fr/appendices/reserved.xml:1.3 phpdoc/fr/appendices/reserved.xml:1.4
--- phpdoc/fr/appendices/reserved.xml:1.3   Fri Mar  2 07:17:31 2001
+++ phpdoc/fr/appendices/reserved.xml   Mon Mar 19 08:44:21 2001
@@ -1,7 +1,7 @@
 
  Mot réservés en PHP
  
-  Voici la liste des mots réservés en PHP : 
+  Voici la liste des mots réservés en PHP :
   


@@ -92,7 +92,7 @@

 E_WARNING.
 
- 
+   
 

 extends.





Re: [PHP-DOC] Using 2 function prototypes? - was Re: [PHP-DOC]cvs: phpdoc /en/functions var.xml

2001-03-19 Thread Damien Seguy

Hi,

> It could be a good idea to use 2 distinct
> funcprototype tags in cases in which the function
> changed from PHP 3 to PHP 4.
I agree on this. When updating docs translation, I noticed
that sometimes we were erasing old content, which would be
useful for anyone stuck with an old version. PDF.xml is
an excellent example, as it already bears function API
for pdflib 4, which is only on beta stage. (so, I postponed
translation).

I'm ok on this. 

Damien Seguy




[PHP-DOC] cvs: phpdoc /en/functions xslt.xml

2001-03-19 Thread Damien Seguy

damsMon Mar 19 05:24:24 2001 EDT

  Modified files:  
/phpdoc/en/functionsxslt.xml 
  Log:
  setting parmeter type outside parameter tag.
  
Index: phpdoc/en/functions/xslt.xml
diff -u phpdoc/en/functions/xslt.xml:1.14 phpdoc/en/functions/xslt.xml:1.15
--- phpdoc/en/functions/xslt.xml:1.14   Fri Mar 16 22:10:59 2001
+++ phpdoc/en/functions/xslt.xmlMon Mar 19 05:24:24 2001
@@ -115,7 +115,7 @@
  
   int xslt_errno

-int xh
+int xh

  
 
@@ -138,7 +138,7 @@
  
   mixed xslt_error

-int xh
+int xh

  
 
@@ -161,8 +161,8 @@
  
   string xslt_fetch_result

-int xh
-string result_name
+int xh
+string result_name

  
 
@@ -185,7 +185,7 @@
  
   void xslt_free

-resource xh
+resource xh

  
 
@@ -206,9 +206,9 @@
  
   bool xslt_openlog

-resource xh
-string logfile
-int loglevel
+resource xh
+string logfile
+int loglevel

  
 
@@ -232,7 +232,7 @@
xslt_output_begintransform
   

-string xslt_filename
+string xslt_filename

  
 
@@ -315,9 +315,9 @@
xslt_process
   

-string xsl_data
-string xml_data
-string result
+string xsl_data
+string xml_data
+string result

  
 
@@ -400,12 +400,12 @@
  
   bool xslt_run

-resource xh
-string xslt_file
-string xml_data_file
-string result
-array xslt_params
-array xslt_args
+resource xh
+string xslt_file
+string xml_data_file
+string result
+array xslt_params
+array xslt_args

  
 
@@ -429,8 +429,8 @@
  
   bool xslt_set_sax_handler

-resource xh
-array handlers
+resource xh
+array handlers

  
 
@@ -453,12 +453,12 @@
xslt_transform
   
   
-string xsl
-string xml
-string result
-string params
-string args
-string resultBuffer
+string xsl
+string xml
+string result
+string params
+string args
+string resultBuffer

  
 





[PHP-DOC] cvs: phpdoc / mk_ini_set_table.sh

2001-03-19 Thread Jesus M. Castagnetto

jmcastagnetto   Mon Mar 19 05:00:57 2001 EDT

  Modified files:  
/phpdoc mk_ini_set_table.sh 
  Log:
  added comments
  
  
Index: phpdoc/mk_ini_set_table.sh
diff -u phpdoc/mk_ini_set_table.sh:1.1 phpdoc/mk_ini_set_table.sh:1.2
--- phpdoc/mk_ini_set_table.sh:1.1  Mon Mar 19 04:47:12 2001
+++ phpdoc/mk_ini_set_table.sh  Mon Mar 19 05:00:57 2001
@@ -1,5 +1,10 @@
 #! /bin/sh
 
+# Quick hack to make a table of PHP options
+# and where they can be changed
+# Jesus M. Castagnetto
+# Mon Mar 19 04:57:02 PST 2001
+
 main_c="../php4/main/main.c"
 ini_set_table="en/functions/ini_set_table";
 





[PHP-DOC] cvs: phpdoc /en/functions info.xml

2001-03-19 Thread Jesus M. Castagnetto

jmcastagnetto   Mon Mar 19 04:49:03 2001 EDT

  Modified files:  
/phpdoc/en/functionsinfo.xml 
  Log:
  fixed some typos
  
  
Index: phpdoc/en/functions/info.xml
diff -u phpdoc/en/functions/info.xml:1.42 phpdoc/en/functions/info.xml:1.43
--- phpdoc/en/functions/info.xml:1.42   Mon Mar 19 04:46:22 2001
+++ phpdoc/en/functions/info.xmlMon Mar 19 04:49:03 2001
@@ -594,8 +594,8 @@
 
  Not all the available options can be changed using
  ini_set. Below is a table with a list of all
- option (as of PHP 4.0.5-dev), indicating which ones can be changed/set
- and at what level.
+ PHP options (as of PHP 4.0.5-dev), indicating which ones can be 
+ changed/set and at what level.
  
   Configuration options
   





[PHP-DOC] cvs: phpdoc / mk_ini_set_table.sh

2001-03-19 Thread Jesus M. Castagnetto

jmcastagnetto   Mon Mar 19 04:47:13 2001 EDT

  Added files: 
/phpdoc mk_ini_set_table.sh 
  Log:
  Awk script to generate the tables for ini_set (in en/functions/info.xml)
  
  

Index: phpdoc/mk_ini_set_table.sh
+++ phpdoc/mk_ini_set_table.sh
#! /bin/sh

main_c="../php4/main/main.c"
ini_set_table="en/functions/ini_set_table";

awk 'BEGIN {
print "\n Configuration options"
print " ";
print "  ";
print "   ";
print "Name";
print "Default";
print "Changeable";
print "   ";
print "  ";
print "  ";
}
$0 ~ /PHP_INI_.*\(/ && $0 !~ /^static/ && $0 !~ /PHP_INI_(BEGIN|END)/ {
nf = split($0,tmp,",");

varname = substr(tmp[1], index(tmp[1], "\""));
gsub("\"", "", varname);

vardef = tmp[2];
gsub("(\t| )+", "", vardef);
#if (index(vardef, "\""))
#   gsub("\"", "", vardef);

varmod = tmp[3];
gsub("(\t| )+", "", varmod);

print "";
print " " varname ""
print " " vardef ""
print " " varmod ""
print "";
};
END {
print "  ";
print " ";
print "";
print "";
print " ";
print "  The PHP_INI_* constants are defined as follows:";
print "  ";
print "   ";
print "";
print " Constant";
print " Value";
print " Meaning";
print "";
print "   ";
print "   ";
print "";
print " PHP_INI_USER";
print " 1";
print " Entry can be set in user scripts";
print "";
print "";
print " PHP_INI_PERDIR";
print " 2";
print " Entry can be set in .htaccess";
print "";
print "";
print " PHP_INI_SYSTEM";
print " 4";
print " Entry can be set in php.ini or";
print "  httpd.conf";
print "";
print "";
print " PHP_INI_ALL";
print " 7";
print " Entry can be set anywhere";
print "";
print "   ";
print "  ";
print " ";
print "";
}' $main_c > $ini_set_table

ls -l $ini_set_table





[PHP-DOC] cvs: phpdoc /en/functions info.xml

2001-03-19 Thread Jesus M. Castagnetto

jmcastagnetto   Mon Mar 19 04:46:22 2001 EDT

  Modified files:  
/phpdoc/en/functionsinfo.xml 
  Log:
  Added tables of options and where they can be changed (user scripts,
  php.ini/httd.conf and/or .htaccess) to the description of ini_set()
  This tables are generated using the script mk_ini_set_table.sh
  
  

Index: phpdoc/en/functions/info.xml
diff -u phpdoc/en/functions/info.xml:1.41 phpdoc/en/functions/info.xml:1.42
--- phpdoc/en/functions/info.xml:1.41   Fri Mar 16 23:13:33 2001
+++ phpdoc/en/functions/info.xmlMon Mar 19 04:46:22 2001
@@ -592,6 +592,358 @@
  value on success, false on failure.
 
 
+ Not all the available options can be changed using
+ ini_set. Below is a table with a list of all
+ option (as of PHP 4.0.5-dev), indicating which ones can be changed/set
+ and at what level.
+ 
+  Configuration options
+  
+   
+
+ Name
+ Default
+ Changeable
+
+   
+   
+ 
+  define_syslog_variables
+  "0"
+  PHP_INI_ALL
+ 
+ 
+  highlight.bg
+  HL_BG_COLOR
+  PHP_INI_ALL
+ 
+ 
+  highlight.comment
+  HL_COMMENT_COLOR
+  PHP_INI_ALL
+ 
+ 
+  highlight.default
+  HL_DEFAULT_COLOR
+  PHP_INI_ALL
+ 
+ 
+  highlight.html
+  HL_HTML_COLOR
+  PHP_INI_ALL
+ 
+ 
+  highlight.keyword
+  HL_KEYWORD_COLOR
+  PHP_INI_ALL
+ 
+ 
+  highlight.string
+  HL_STRING_COLOR
+  PHP_INI_ALL
+ 
+ 
+  allow_call_time_pass_reference
+  "1"
+  PHP_INI_SYSTEM|PHP_INI_PERDIR
+ 
+ 
+  asp_tags
+  "0"
+  PHP_INI_SYSTEM|PHP_INI_PERDIR
+ 
+ 
+  display_errors
+  "1"
+  PHP_INI_ALL
+ 
+ 
+  display_startup_errors
+  "0"
+  PHP_INI_ALL
+ 
+ 
+  enable_dl
+  "1"
+  PHP_INI_SYSTEM
+ 
+ 
+  error_append_string
+  NULL
+  PHP_INI_ALL
+ 
+ 
+  error_prepend_string
+  NULL
+  PHP_INI_ALL
+ 
+ 
+  expose_php
+  "1"
+  PHP_INI_SYSTEM
+ 
+ 
+  html_errors
+  "1"
+  PHP_INI_SYSTEM
+ 
+ 
+  ignore_user_abort
+  "0"
+  PHP_INI_ALL
+ 
+ 
+  implicit_flush
+  "0"
+  PHP_INI_PERDIR|PHP_INI_SYSTEM
+ 
+ 
+  log_errors
+  "0"
+  PHP_INI_ALL
+ 
+ 
+  magic_quotes_gpc
+  "1"
+  PHP_INI_ALL
+ 
+ 
+  magic_quotes_runtime
+  "0"
+  PHP_INI_ALL
+ 
+ 
+  magic_quotes_sybase
+  "0"
+  PHP_INI_ALL
+ 
+ 
+  output_buffering
+  "0"
+  PHP_INI_PERDIR|PHP_INI_SYSTEM
+ 
+ 
+  output_handler
+  NULL
+  PHP_INI_PERDIR|PHP_INI_SYSTEM
+ 
+ 
+  register_argc_argv
+  "1"
+  PHP_INI_ALL
+ 
+ 
+  register_globals
+  "1"
+  PHP_INI_ALL
+ 
+ 
+  safe_mode
+  "0"
+  PHP_INI_SYSTEM
+ 
+ 
+  short_open_tag
+  "1"
+  PHP_INI_SYSTEM|PHP_INI_PERDIR
+ 
+ 
+  sql.safe_mode
+  "0"
+  PHP_INI_SYSTEM
+ 
+ 
+  track_errors
+  "0"
+  PHP_INI_ALL
+ 
+ 
+  y2k_compliance
+  "0"
+  PHP_INI_ALL
+ 
+ 
+  arg_separator
+  "&"
+  PHP_INI_ALL
+ 
+ 
+  auto_append_file
+  NULL
+  PHP_INI_ALL
+ 
+ 
+  auto_prepend_file
+  NULL
+  PHP_INI_ALL
+ 
+ 
+  doc_root
+  NULL
+  PHP_INI_SYSTEM
+ 
+ 
+  default_charset
+  SAPI_DEFAULT_CHARSET
+  PHP_INI_ALL
+ 
+ 
+  default_mimetype
+  SAPI_DEFAULT_MIMETYPE
+  PHP_INI_ALL
+ 
+ 
+  error_log
+  NULL
+  PHP_INI_ALL
+ 
+ 
+  extension_dir
+  PHP_EXTENSION_DIR
+  PHP_INI_SYSTEM
+ 
+ 
+  gpc_order
+  "GPC"
+  PHP_INI_ALL
+ 
+ 
+  include_path
+  PHP_INCLUDE_PATH
+  PHP_INI_ALL
+ 
+ 
+  max_execution_time
+  "30"
+  PHP_INI_ALL
+ 
+ 
+  open_basedir
+  NULL
+

[PHP-DOC] Using 2 function prototypes? - was Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml

2001-03-19 Thread Jesus M. Castagnetto

It could be a good idea to use 2 distinct
funcprototype tags in cases in which the function
changed from PHP 3 to PHP 4.

Looking at the DocBook spec, a funcprototype can only
have one funcdef, and a funcdef can contain #PCDATA.
Also, a funcsynopsis element can contain one or more
funcprototype elements. 

So we could use:


 
  
   (PHP 3) int unset
  
  
   ...
  
 
 
  
   (PHP 4) void unset
  
  
   ...
  
  


Opinions/comments?


=
--- Jesus M. Castagnetto <[EMAIL PROTECTED]>

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: [PHP-DOC] About resources.xml

2001-03-19 Thread Damien Seguy

on 17/03/01 10:56, Jesus M. Castagnetto at [EMAIL PROTECTED] wrote:

> Is this file being generated automatically, manually
> or a mixture of both?
Until now, it's a mixture of both.

I've a excel-like table, with informations, and translation (en and fr),
which built up the file (except introductory text).

In fact, I aim at automating this, so as I'm filling up
this table, I'm converting all argument types to "resource".
This way, I'll have something to hook up on, and may be automatise
this all. I'm using the fr tree as test.

I'll keep you posted on this, as soon as I'm done with the fill up.

Damien seguy.




[PHP-DOC] cvs: phpdoc /en/functions var.xml

2001-03-19 Thread Torben Wilson

torben  Mon Mar 19 01:58:58 2001 EDT

  Modified files:  
/phpdoc/en/functionsvar.xml 
  Log:
  
  
  Clarification of unset() return value.
  
  
Index: phpdoc/en/functions/var.xml
diff -u phpdoc/en/functions/var.xml:1.40 phpdoc/en/functions/var.xml:1.41
--- phpdoc/en/functions/var.xml:1.40Mon Mar 19 00:45:06 2001
+++ phpdoc/en/functions/var.xml Mon Mar 19 01:58:57 2001
@@ -1028,7 +1028,13 @@
  
 
 
- unset destroys the specified variables.
+ unset destroys the specified variables. Note
+ that in PHP 3, unset will always return true
+ (actually, the integer value 1). In PHP 4, however,
+ unset is no longer a true function: it is
+ now a statement. As such no value is returned, and attempting to
+ take the value of unset results in a parse
+ error.
 
 
  





Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml

2001-03-19 Thread Jesus M. Castagnetto

I missed that one. Tnxs for the info, and I will
modify it so you will not need to ;-)


--- Daniel Beckham <[EMAIL PROTECTED]> wrote:
> If this is the case, you may want to reword the
> "unset() destroys the
> specified variables and returns true".  How can the
> proto say it returns a
> void type, yet the definition says it returns true?
> 
> Daniel
> 
> 
> - Original Message -
> From: "Jesus M. Castagnetto"
> <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, March 17, 2001 12:30 AM
> Subject: [PHP-DOC] cvs: phpdoc /en/functions var.xml
> 
> 
> > jmcastagnetto Fri Mar 16 22:30:10 2001 EDT
> >
> >   Modified files:
> > /phpdoc/en/functions var.xml
> >   Log:
> >   unset is a construct not a function, removed the
> incorrect (int) return
> >
> >
> > Index: phpdoc/en/functions/var.xml
> > diff -u phpdoc/en/functions/var.xml:1.36
> phpdoc/en/functions/var.xml:1.37
> > --- phpdoc/en/functions/var.xml:1.36 Fri Mar  9
> 07:33:03 2001
> > +++ phpdoc/en/functions/var.xml Fri Mar 16
> 22:30:09 2001
> > @@ -1021,7 +1021,7 @@
> >  Description
> >  
> >   
> > -  int
> unset
> > +  void
> unset
> >mixed
> var
> >mixed
>
var
> >
>
...
> > @@ -1143,6 +1143,11 @@
> >  foo();
> >
> >   
> > +
> > +
> > +
> > + unset is a language
> construct.
> > +
> >  
> >  
> >   See also isset and
> >
> >
> >
> >
> 


=
--- Jesus M. Castagnetto <[EMAIL PROTECTED]>

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



[PHP-DOC] cvs: phpdoc /en/functions var.xml

2001-03-19 Thread Jesus M. Castagnetto

jmcastagnetto   Mon Mar 19 00:45:06 2001 EDT

  Modified files:  
/phpdoc/en/functionsvar.xml 
  Log:
  Another fix on unset
  
  
Index: phpdoc/en/functions/var.xml
diff -u phpdoc/en/functions/var.xml:1.39 phpdoc/en/functions/var.xml:1.40
--- phpdoc/en/functions/var.xml:1.39Sat Mar 17 23:01:57 2001
+++ phpdoc/en/functions/var.xml Mon Mar 19 00:45:06 2001
@@ -1028,8 +1028,7 @@
  
 
 
- unset destroys the specified variables and
- returns true.
+ unset destroys the specified variables.