[PHP-DOC] #22942 [Opn]: bcpow

2003-03-29 Thread pollita
 ID:   22942
 Updated by:   [EMAIL PROTECTED]
 Reported By:  aleon at sedesa dot com dot ar
 Status:   Open
-Bug Type: BC math related
+Bug Type: Documentation problem
 Operating System: linux 2.4.18
 PHP Version:  4.3.1
 New Comment:

libbcmath, unfortunately, does not support non-integer exponents in
either raise (bcpow) or raisemod (bcpowmod).

libgmp, sadly, is no better.

Documentation should be updated to reflect.


Previous Comments:


[2003-03-28 15:51:18] aleon at sedesa dot com dot ar

bcpow(1.018333,0.9990867579) this gives 1 when it should be
1.018316438, no matter wich scale i choose. If you approach
0.9990867579 to 0.9, then it works.

'./configure' '--with-mysql' '--with-gd' '--with-zlib' '--with-apxs' 
--enable-bcmath

P3 500 mhz, 256 ram




-- 
Edit this bug report at http://bugs.php.net/?id=22942&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /en/reference/strings/functions explode.xml

2003-03-29 Thread Andrew Lindeman
alindeman   Sat Mar 29 21:30:50 2003 EDT

  Modified files:  
/phpdoc/en/reference/strings/functions  explode.xml 
  Log:
  commas make this sentence sound a bit better...
  
  
Index: phpdoc/en/reference/strings/functions/explode.xml
diff -u phpdoc/en/reference/strings/functions/explode.xml:1.2 
phpdoc/en/reference/strings/functions/explode.xml:1.3
--- phpdoc/en/reference/strings/functions/explode.xml:1.2   Wed Apr 17 02:44:14 
2002
+++ phpdoc/en/reference/strings/functions/explode.xml   Sat Mar 29 21:30:50 2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -52,7 +52,7 @@
 
 
  
-  Although implode can for historical reasons
+  Although implode can, for historical reasons,
   accept its parameters in either order,
   explode cannot. You must ensure that the
   separator argument comes before the



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /en/reference/gettext configure.xml

2003-03-29 Thread Fernando Correa da Conceição
fernandoc   Sat Mar 29 19:43:41 2003 EDT

  Modified files:  
/phpdoc/en/reference/gettextconfigure.xml 
  Log:
  Reverting wrong commit by thomas
  
Index: phpdoc/en/reference/gettext/configure.xml
diff -u phpdoc/en/reference/gettext/configure.xml:1.2 
phpdoc/en/reference/gettext/configure.xml:1.3
--- phpdoc/en/reference/gettext/configure.xml:1.2   Sat Mar 29 19:27:50 2003
+++ phpdoc/en/reference/gettext/configure.xml   Sat Mar 29 19:43:41 2003
@@ -1,19 +1,19 @@
 
-
+
 
 &reftitle.install;
  
-  Para incluir o suporte ao GNU gettext na sua instalação PHP você deve adicionar 
-  a opção --with-gettext[=DIR] onde DIR é o 
diretório 
-  de instalação do gettext, o diretório padrão é /usr/local.
+  To include GNU gettext support in your PHP build you must add the option
+  --with-gettext[=DIR] where DIR is the
+  gettext install directory, defaults to /usr/local.
  
  
-  Nota para usuários do Win32
+  Note to Win32 Users
   
-   Para habilitar este módulo no seu ambiente Windows, você deve copiar 
-   a DLL gnu_gettext.dll do diretório DLL do seu pacote 
-   binário PHP/Win32 para a pasta SYSTEM32 do windows. (Ex: C:\WINNT\SYSTEM32 ou 
-   C:\WINDOWS\SYSTEM32). Nas versõs superiores ao PHP 4.2.3 o nome do arquivo mudou 
para 
+   In order to enable this module on a Windows environment, you must copy
+   gnu_gettext.dll from the DLL folder of the PHP/Win32 binary
+   package to the SYSTEM32 folder of your windows machine. (Ex: C:\WINNT\SYSTEM32
+   or C:\WINDOWS\SYSTEM32). Starting with PHP 4.2.3 the name changed to
libintl-1.dll
   
  



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /en/reference/gettext configure.xml

2003-03-29 Thread Thomas Gonzalez Miranda
thomasgmSat Mar 29 19:27:50 2003 EDT

  Modified files:  
/phpdoc/en/reference/gettextconfigure.xml 
  Log:
  
  
  
Index: phpdoc/en/reference/gettext/configure.xml
diff -u phpdoc/en/reference/gettext/configure.xml:1.1 
phpdoc/en/reference/gettext/configure.xml:1.2
--- phpdoc/en/reference/gettext/configure.xml:1.1   Wed Nov 27 19:42:46 2002
+++ phpdoc/en/reference/gettext/configure.xml   Sat Mar 29 19:27:50 2003
@@ -1,19 +1,19 @@
 
-
+
 
 &reftitle.install;
  
-  To include GNU gettext support in your PHP build you must add the option
-  --with-gettext[=DIR] where DIR is the
-  gettext install directory, defaults to /usr/local.
+  Para incluir o suporte ao GNU gettext na sua instalação PHP você deve adicionar 
+  a opção --with-gettext[=DIR] onde DIR é o 
diretório 
+  de instalação do gettext, o diretório padrão é /usr/local.
  
  
-  Note to Win32 Users
+  Nota para usuários do Win32
   
-   In order to enable this module on a Windows environment, you must copy
-   gnu_gettext.dll from the DLL folder of the PHP/Win32 binary
-   package to the SYSTEM32 folder of your windows machine. (Ex: C:\WINNT\SYSTEM32
-   or C:\WINDOWS\SYSTEM32). Starting with PHP 4.2.3 the name changed to
+   Para habilitar este módulo no seu ambiente Windows, você deve copiar 
+   a DLL gnu_gettext.dll do diretório DLL do seu pacote 
+   binário PHP/Win32 para a pasta SYSTEM32 do windows. (Ex: C:\WINNT\SYSTEM32 ou 
+   C:\WINDOWS\SYSTEM32). Nas versõs superiores ao PHP 4.2.3 o nome do arquivo mudou 
para 
libintl-1.dll
   
  



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] #22749 [Opn]: Classes outside of namespaces cannot be called.

2003-03-29 Thread eric at evilwalrus dot com
 ID:   22749
 User updated by:  eric at evilwalrus dot com
 Reported By:  eric at evilwalrus dot com
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Windows XP
 PHP Version:  5CVS-2003-03-17 (dev)
 New Comment:

This would be why I thought it was by design. That works for me. I just
changed the $new = new TestClass2(); to $new = new ::TestClass2(); and
it worked perfectly. Thanks.


Previous Comments:


[2003-03-29 04:15:16] [EMAIL PROTECTED]

Thanks to Marcus who brought light into this:

You access classes from the global namespace by ommiting the
namespace-name part:

new ::TestClass2();

is the proper syntax. Same for my exception extending problem:

php -r 'namespace myscope { class myexception extends ::exception { }
}'

Marking as a documentation problem (it's not in ZEND_CHANGES even).



[2003-03-27 17:58:25] [EMAIL PROTECTED]

Also pretty annoying if you want to declare a class extending the main
exception class in your namespace. It simply doesn't work because its
not "seen":

$ php -r 'class myexception extends exception { } '
[no error, works]

$ php -r 'namespace myscope { class myexception extends exception { }
}'
Command line code(1) : Fatal error - Class 'exception' not found

I couldn't find a way to reference the global namespace.



[2003-03-17 11:33:25] eric at evilwalrus dot com

If I have the following script, the class that is defined before the
namespace cannot be called from within a class in the namespace.

newClass();
}

class TestClass
{
function __construct()
{
print "TestClass\n";
}

function newClass ()
{
$new = new TestClass2();
}
}
}

Test::newClass();
//$new = new TestClass2();
?>

This example will show the error "Fatal error: Class 'testclass2' not
found in c:\usr\test.php on line 26" I'm assuming that this is done by
design... but I would think that PHP would look for the class outside
of the namespace since it is defined before the namespace. If you use
the commented out line $new = new TestClass2; instead of the
Test::newClass(); then it works properly, and the TestClass2 construct
is called.

As I said, I think this is done by design and isn't a bug... but I
thought I would submit it because I'm not for sure. Any explination
though would be very helpful to me. Thanks.




-- 
Edit this bug report at http://bugs.php.net/?id=22749&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /en/reference/session reference.xml

2003-03-29 Thread Friedhelm Betz
betzSat Mar 29 11:33:48 2003 EDT

  Modified files:  
/phpdoc/en/reference/sessionreference.xml 
  Log:
  link corrections
  
  
Index: phpdoc/en/reference/session/reference.xml
diff -u phpdoc/en/reference/session/reference.xml:1.31 
phpdoc/en/reference/session/reference.xml:1.32
--- phpdoc/en/reference/session/reference.xml:1.31  Wed Mar 26 02:53:08 2003
+++ phpdoc/en/reference/session/reference.xml   Sat Mar 29 11:33:48 2003
@@ -1,5 +1,5 @@
 
-
+
  
   Session handling functions
   Sessions
@@ -27,7 +27,7 @@
  The session support allows you to register arbitrary numbers of
  variables to be preserved across requests. When a visitor accesses
  your site, PHP will check automatically (if session.auto_start
+ linkend="ini.session.auto-start">session.auto_start
  is set to 1) or on your request (explicitly through
  session_start or implicitly through
  session_register) whether a specific session
@@ -36,7 +36,7 @@
 
  
   
-   If you do turn on 
+   If you do turn on 
session.auto_start then you cannot put
objects into your sessions since the class definition has to be
loaded before starting the session in order to recreate the



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] #22115 [Asn]: Lack of detail to the installation instructions!

2003-03-29 Thread betz
 ID:   22115
 Updated by:   [EMAIL PROTECTED]
 Reported By:  stephen dot edmonds5 at btinternet dot com
 Status:   Assigned
 Bug Type: Documentation problem
 Operating System: All
 PHP Version:  4.3.0
 Assigned To:  betz
 New Comment:

@stephen dot edmonds5 at btinternet dot com:
the docs has been updated and will show up soon on the website. You can
take a look at
http://cvs.php.net/co.php/phpdoc/en/chapters/install.apache.xml?login=2&r=1.17
Feel free to add your comments.
@mawebb at rocketmail dot com
The complete list of configure options will be soon available along
with more verbose explanations of each option. Meanwhile consult the
extension specific configure options in the function reference.

Thanks for your report.

Friedhelm



Previous Comments:


[2003-02-08 06:02:27] [EMAIL PROTECTED]

Alright verified.

If someone is already working on that, let me know or I will do it.



[2003-02-07 23:42:43] mawebb at rocketmail dot com

Hi-

What this guy says is right on - there is simply not enough explanation
in the install section. I would like to add one comment, though:

An especially glaring ommission is an explanation of what features are
built into the base install of 4.3.0, and what options need to be added
to 'configure'. The heading of the chapter says that it contains a
"complete list of configuration options", yet when I take a look at
past comments from users, they are referencing configuration options
not listed in the chapter!!?!? Among the ones of interest are the
settings for enabling MySQL, PostgreSQL, and apache support. 

Are all these built in now? It's not made clear in the doc. Also, it
would be great if there was more explanation of what the different
options mean.

The reason why this is so critical is that a wrong setting here can
cause many hours of frustration and tweaking of PHP config files,
messing with other installed programs (basically hosing your system)
when it all could have been avoided by having the info upfront about
which config flags to include...



[2003-02-07 15:17:13] stephen dot edmonds5 at btinternet dot com

Basically, the installation file in the Apache section does not provide
the level of detail that is really needed. Far too often I see emails
where people can not get php to work. Why? Because they have simply
followed this instruction:

After you've set up the file layout properly, you're ready to finally
configure Apache to load the PHP4 module. Just add the following lines
to your httpd.conf:

   LoadModule php4_module c:/php/sapi/php4apache.dll
   AddModule mod_php4.c
   AddType application/x-httpd-php .php

Followed liturally, the user then goes and plonks them all in one big
group. Guess what happens then? If you said it mess's up, then you are
correct! Basically, to help all the new users to php/php installation,
I suggest the following change: (This is taken from an email I have
sent out several times, so some gramatic change may be in order!)

LoadModule php4_module C:\PHP\sapi\php4apache.dll

This has to be in the same place as all the other LoadModule commands.
If you look through your httpd.conf file for Apache, you will see a
whole load of LoadModules with #'s in front of them. You need to place
the above line
at the end of that list.

If you then scroll down a bit the next section should be 'AddModule'.
In this section, you have to put the line
   AddModule mod_php4.c
at the bottom of the list. Both commands are needed to properly load
PHP.

Once that is done, you will need to run a search for

" # AddType allows you to tweak mime.types without actually editing it,
or to "

Below that line should be a series of AddType commands. Again, you need
to put

AddType application/x-httpd-php .php

at the end of the list.

AddType application/x-httpd-php-source .phps

is an optional feature, I personnally do not use it as I do not want
people to be able to view my source code. However it is up to you. If
you do want to include it, put it in the same section as the previous
command.




-- 
Edit this bug report at http://bugs.php.net/?id=22115&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] #14283 [Sus->Fbk]: printer_create_dc - Example has errors in manual

2003-03-29 Thread betz
 ID:   14283
 Updated by:   [EMAIL PROTECTED]
 Reported By:  joergklein at web dot de
-Status:   Suspended
+Status:   Feedback
 Bug Type: Documentation problem
 Operating System: WinXP ger
-PHP Version:  4.0.6
+PHP Version:  4.3.1
 New Comment:

Version info changed
The printer extension is still available for 4.3.1
Is it really moved to PECL?
As long as the docs are not moved, and printer extension will be
continued to be distributed with the 'main release' of PHP the docs
should be updated.


Previous Comments:


[2002-12-19 23:19:48] [EMAIL PROTECTED]

Appears to be an abandoned PECL extension.



[2002-05-16 21:07:46] mtntrip at yahoo dot com

The original code presented by joerglklein will not print at all for
me.  I get the same errors on both Win 98 and Win NT 4 SP4 using a
Generic Text driver as well as a printer specific driver.

I found if I put the printer_create_dc() and printer_set_option()
outside of printer_start_doc() and printer_start_page() that it did
print without most errors, but of course it didn't print correctly.



[2001-11-29 10:43:25] joergklein at web dot de

take a look at
http://www.php.net/manual/en/function.printer-create-dc.php

at first you should replace printer_endpage($handle); with
printer_end_page($handle);
his is the correct code:

01: 

Second: when I tried out this example I get an one error and one
warning:
Warning: couldn't end the page in /test.php on line 19
Fatal error: couldn't terminate print job in /test.php on line 20

When I try to open a special printer with 
$handle = printer_open("$printer");
I get these errors and warnings:
Warning: No DeviceContext created in /test.php on line 17
Warning: couldn't end the page in /test.php on line 19
Fatal error: couldn't terminate print job in /test.php on line 20

So I think there a some problems with the Device Contexts

Joerg




-- 
Edit this bug report at http://bugs.php.net/?id=14283&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DOC] Web manual and manual.ced

2003-03-29 Thread Friedhelm Betz
Am Donnerstag 06 März 2003 17:52 schrieb Derick Rethans:
> On Thu, 6 Mar 2003, James Cox wrote:
> > > There are no problems, it's just not in cron yet
> >
> > Actually, there are problems. Building the manual seems to a: take
> > forever, and b: causes rsync to fight with the cpu, which is not a good
> > thing. Builds will start again in about a week once i move some stuff
> > around.
>
> "once i move some stuff around" is something I hear a few months now :)
> Are you really going to do it now?

Any news or just some infos, when manual building will be available again? ;-)

Friedhelm


--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /en/reference/ldap reference.xml

2003-03-29 Thread Friedhelm Betz
betzSat Mar 29 10:37:35 2003 EDT

  Modified files:  
/phpdoc/en/reference/ldap   reference.xml 
  Log:
  links to docs and download places
  
  
Index: phpdoc/en/reference/ldap/reference.xml
diff -u phpdoc/en/reference/ldap/reference.xml:1.6 
phpdoc/en/reference/ldap/reference.xml:1.7
--- phpdoc/en/reference/ldap/reference.xml:1.6  Sat Nov 30 10:33:18 2002
+++ phpdoc/en/reference/ldap/reference.xml  Sat Mar 29 10:37:35 2003
@@ -1,5 +1,5 @@
 
-
+
  
   LDAP functions
   LDAP
@@ -70,11 +70,16 @@
Netscape
   
  
+
  
   
OpenLDAP Project
@@ -88,7 +93,9 @@
 
 
 
- The Netscape SDK contains a helpful Programmer's Guide in HTML format.
+ The Netscape SDK contains a helpful
+ Programmer's Guide in
+ HTML format.
 

 
@@ -96,8 +103,10 @@
 &reftitle.required;
 
  You will need to get and compile LDAP client libraries from
- either the University of Michigan ldap-3.3 package or the
- Netscape Directory SDK 3.0 to compile PHP with LDAP support.
+ either the University of Michigan 
+ ldap-3.3 package,  Netscape
+ Directory SDK 3.0 or 
+ OpenLDAP to compile PHP with LDAP support.
 

 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /en/features safe-mode.xml

2003-03-29 Thread Friedhelm Betz
betzSat Mar 29 10:36:50 2003 EDT

  Modified files:  
/phpdoc/en/features safe-mode.xml 
  Log:
  use of entities
  
  
Index: phpdoc/en/features/safe-mode.xml
diff -u phpdoc/en/features/safe-mode.xml:1.32 phpdoc/en/features/safe-mode.xml:1.33
--- phpdoc/en/features/safe-mode.xml:1.32   Mon Mar 24 06:26:01 2003
+++ phpdoc/en/features/safe-mode.xmlSat Mar 29 10:36:50 2003
@@ -1,5 +1,5 @@
 
-
+
  
   Safe Mode
 
@@ -240,7 +240,7 @@


 This directive must be set in &php.ini; For example, you 
-cannot set this in httpd.conf.
+cannot set this in &httpd.conf;.

   
  



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /en/faq installation.xml

2003-03-29 Thread Friedhelm Betz
betzSat Mar 29 10:36:23 2003 EDT

  Modified files:  
/phpdoc/en/faq  installation.xml 
  Log:
  use of entities
  
  
Index: phpdoc/en/faq/installation.xml
diff -u phpdoc/en/faq/installation.xml:1.20 phpdoc/en/faq/installation.xml:1.21
--- phpdoc/en/faq/installation.xml:1.20 Tue Feb  4 04:38:22 2003
+++ phpdoc/en/faq/installation.xml  Sat Mar 29 10:36:22 2003
@@ -1,5 +1,5 @@
 
-
+
  
   Installation
   Installation
@@ -40,6 +40,9 @@
   the distribution to /etc/php.ini and
   edit it to make any local changes you want.
  
+  
+--with-config-file-scan-dir=PATH 
+  
  
   On Windows the default path for the &php.ini; file is the Windows
   directory. If you're using the Apache webserver, &php.ini; is first
@@ -141,7 +144,7 @@
  
   Assuming you installed both Apache and PHP from RPM packages, 
   you need to uncomment or add some or all of the following lines
-  in your http.conf file:
+  in your &httpd.conf; file:
   
 # Extra Modules
 AddModule mod_php.c



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2003-03-29 Thread Friedhelm Betz
betzSat Mar 29 10:35:38 2003 EDT

  Modified files:  
/phpdoc/en/appendices   migration4.xml reserved.xml 
  Log:
  use of entities
  
  
Index: phpdoc/en/appendices/migration4.xml
diff -u phpdoc/en/appendices/migration4.xml:1.30 
phpdoc/en/appendices/migration4.xml:1.31
--- phpdoc/en/appendices/migration4.xml:1.30Tue Feb 11 07:35:29 2003
+++ phpdoc/en/appendices/migration4.xml Sat Mar 29 10:35:37 2003
@@ -1,5 +1,5 @@
 
-
+
  
   Migrating from PHP 3 to PHP 4

@@ -118,7 +118,7 @@
  
   Standard values (or flags) cannot control certain PHP directives, for example: 
   &safemode; (if you could override safe mode settings in 
-  .htaccess files, it 
+  &htaccess; files, it 
   would defeat &safemode;'s purpose).  In contrast, Admin values can modify 
   the value of any PHP directive.
  
@@ -127,7 +127,7 @@

 To make the transition process easier, PHP 4 is bundled with scripts 
 that automatically convert your Apache configuration and 
-.htaccess files 
+&htaccess; files 
 to work with both PHP 3 and PHP 4. These scripts do NOT convert the mime 
 type lines! You have to convert these yourself.

@@ -146,7 +146,7 @@
 Your original configuration file will be saved in httpd.conf.orig.


-To convert your .htaccess files, run the 
+To convert your &htaccess; files, run the 
 aphtaccess-conv.sh script (available in 
 the scripts/apache/ directory as well):
 
@@ -158,7 +158,7 @@
 


-Likewise, your old .htaccess files will be saved with 
+Likewise, your old &htaccess; files will be saved with 
 an .orig prefix.


Index: phpdoc/en/appendices/reserved.xml
diff -u phpdoc/en/appendices/reserved.xml:1.28 phpdoc/en/appendices/reserved.xml:1.29
--- phpdoc/en/appendices/reserved.xml:1.28  Mon Mar 24 06:24:28 2003
+++ phpdoc/en/appendices/reserved.xml   Sat Mar 29 10:35:37 2003
@@ -1,5 +1,5 @@
 
-
+
 
  
   List of Reserved Words
@@ -489,7 +489,7 @@
  
   Your web server must be configured to create this variable. For
   example in Apache you'll need HostnameLookups On
-  inside httpd.conf for it to exist.  See also
+  inside &httpd.conf; for it to exist.  See also
   gethostbyaddr.
  
 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2003-03-29 Thread Friedhelm Betz
betzSat Mar 29 10:35:15 2003 EDT

  Modified files:  
/phpdoc/en/chapters install.apache.xml 
  Log:
  part of fix for #22115
  more verbose explanation, where to add directives to httpd.conf
  some formating
  
  
Index: phpdoc/en/chapters/install.apache.xml
diff -u phpdoc/en/chapters/install.apache.xml:1.16 
phpdoc/en/chapters/install.apache.xml:1.17
--- phpdoc/en/chapters/install.apache.xml:1.16  Fri Jan 31 15:58:47 2003
+++ phpdoc/en/chapters/install.apache.xml   Sat Mar 29 10:35:15 2003
@@ -1,5 +1,5 @@
 
-
+
   
Servers-Apache

@@ -119,7 +119,7 @@
  
   This will create a libphp4.so shared
   library that is loaded into Apache using a LoadModule line in
-  Apache's httpd.conf file. The PostgreSQL
+  Apache's &httpd.conf; file. The PostgreSQL
   support is embedded into this libphp4.so
   library.
  
@@ -189,7 +189,7 @@
  
 
  
-  Apache's default http.conf currently ships with a section that looks
+  Apache's default &httpd.conf; currently ships with a section that looks
   like this:
   

@@ -205,9 +205,10 @@
   
 
  
- Make sure you specify the installed version of apxs when using 
--with-apxs=/path/to/apxs.
- You must NOT use the apxs version that is in the apache sources but the one that 
is actually
- installed on your system.
+ Make sure you specify the installed version of apxs when using
+ --with-apxs=/path/to/apxs.
+ You must NOT use the apxs version that is in the apache sources but the one
+ that is actually installed on your system.
  


@@ -219,8 +220,7 @@
  on Windows. One is to use the CGI binary (php.exe),
  the other is to use the Apache module DLL. In either case
  you need to stop the Apache server, and edit your
- srm.conf or httpd.conf
- to configure Apache to work with PHP.
+ &httpd.conf; to configure Apache to work with PHP.
 
 
  It is worth noting here that now the SAPI module has been 
@@ -235,7 +235,7 @@
 
   
 
- If you unziped the PHP package to c:\php\ as described
+ If you unziped the PHP package to c:\php\ as described
  in the Manual
  Installation Steps section, you need to insert
  these lines to your Apache configuration file to set
@@ -264,9 +264,9 @@
   
  
  Note that the second line in the list above can be found
- in the actual versions of httpd.conf,
- but it is commented out. Remember also to substitute the 
- c:/php/ for your actual path to PHP.
+ in the actual versions of &httpd.conf;, but it is commented out. Remember
+ also to substitute the c:/php/ for your actual path to
+ PHP.
  
 
 
@@ -279,61 +279,63 @@
 
 
 
- If you would like to use PHP as a module in Apache,
- be sure to move php4ts.dll to
- the windows/system (for Windows 9x/Me) or winnt/system32
- (for Windows NT/2000/XP) directory, overwriting any older file.
- Then you should add the following two lines to your Apache
- httpd.conf file:
+ If you would like to use PHP as a module in Apache, be sure to copy
+ php4ts.dll to the windows/system
+ (for Windows 9x/Me), winnt/system32 (for Windows
+ NT/2000) or windows/system32 (for Windows XP)
+ directory, overwriting any older file. Then you should add the following
+ lines to your Apache &httpd.conf; file:
  
   

-
- LoadModule php4_module c:/php/sapi/php4apache.dll
-
+ Open &httpd.conf; with your favorite editor and locate the
+ LoadModule directive and add the following line
+ at the end of the list:
+ LoadModule php4_module c:/php/sapi/php4apache.dll

   
   

-
-  AddType application/x-httpd-php .php .phtml
-
+You may find after using the windows installer for Apache that you need
+to define the AddModule directive for
+mod_php4.c. This is especially important if the
+ClearModuleList directive is defined, which you will
+find by scrolling down a few lines. You will see a list of
+AddModule entries, add the following line
+at the end of the list:  
+AddModule mod_php4.c
+
+  
+  
+   
+ Search for a phrase similar to
+ # AddType allows you to tweak mime.types. You will
+ see some AddType entries, add the following line
+ at the end of the list: 
+ AddType application/x-httpd-php .php.
+ You can choose any extension you want to parse through PHP here. .php
+ is simply the one we suggest. You can even include .html, and .php3
+ can be added for backwards compatibility.

   
  
 
 
 
- After changing the configuration
- file, remember to restart the server, for example,
- NET STOP APACHE followed by
- NET START APACHE,

[PHP-DOC] cvs: phpdoc /en/chapters config.xml install.apache2.xml

2003-03-29 Thread Friedhelm Betz
betzSat Mar 29 10:30:07 2003 EDT

  Modified files:  
/phpdoc/en/chapters config.xml install.apache2.xml 
  Log:
  use of entities
  
  
Index: phpdoc/en/chapters/config.xml
diff -u phpdoc/en/chapters/config.xml:1.94 phpdoc/en/chapters/config.xml:1.95
--- phpdoc/en/chapters/config.xml:1.94  Fri Mar 14 07:36:54 2003
+++ phpdoc/en/chapters/config.xml   Sat Mar 29 10:30:06 2003
@@ -1,5 +1,5 @@
 
-
+
  
   Configuration
 
@@ -70,8 +70,8 @@
 
  When using PHP as an Apache module, you can also change the
  configuration settings using directives in Apache configuration
- files (e.g. httpd.conf) and
- .htaccess files (You will need
+ files (e.g. &httpd.conf;) and
+ &htaccess; files (You will need
  "AllowOverride Options" or "AllowOverride All" privileges)
 
 
@@ -137,9 +137,9 @@

 
  Sets the value of the specified directive.
- This can NOT be used in .htaccess files.
+ This can NOT be used in &htaccess; files.
  Any directive type set with php_admin_value
- can not be overridden by .htaccess or virtualhost 
directives.
+ can not be overridden by &htaccess; or virtualhost directives.
  To clear a previously set value use none as the value.
  
   
@@ -160,9 +160,9 @@

 
  Used to set a Boolean configuration directive.
- This can NOT be used in .htaccess files.
+ This can NOT be used in &htaccess; files.
  Any directive type set with php_admin_flag
- can not be overridden by .htaccess or virtualhost 
directives.
+ can not be overridden by &htaccess; or virtualhost directives.
 

   
@@ -188,7 +188,7 @@
  
   
PHP constants do not exist outside of PHP. For example, in 
-   httpd.conf you can not use PHP constants 
+   &httpd.conf; you can not use PHP constants 
such as E_ALL or E_NOTICE 
to set the error_reporting 
directive as they will have no meaning and will evaluate to
@@ -228,15 +228,15 @@
 PHP_INI_PERDIR
 2
 
- Entry can be set in &php.ini;, .htaccess or
- httpd.conf
+ Entry can be set in &php.ini;, &htaccess; or
+ &httpd.conf;
 


 PHP_INI_SYSTEM
 4
 
- Entry can be set in &php.ini; or httpd.conf
+ Entry can be set in &php.ini; or &httpd.conf;
 


@@ -692,8 +692,8 @@
 
  Please note that register_globals
  cannot be set at runtime (ini_set). Although, you can
- use .htaccess if your host allows it as described
- above. An example .htaccess entry:
+ use &htaccess; if your host allows it as described
+ above. An example &htaccess; entry:
  php_flag register_globals on.
 
 
Index: phpdoc/en/chapters/install.apache2.xml
diff -u phpdoc/en/chapters/install.apache2.xml:1.9 
phpdoc/en/chapters/install.apache2.xml:1.10
--- phpdoc/en/chapters/install.apache2.xml:1.9  Tue Feb 18 06:54:49 2003
+++ phpdoc/en/chapters/install.apache2.xml  Sat Mar 29 10:30:06 2003
@@ -1,5 +1,5 @@
 
-
+
   
Servers-Apache 2.0

@@ -186,7 +186,7 @@
  There are two ways to set up PHP to work with
  Apache 2.0 on Windows. One is to use the CGI binary the other is to
  use the Apache module DLL. In either case you need to stop the Apache
- server, and edit your httpd.conf to configure Apache
+ server, and edit your &httpd.conf; to configure Apache
  to work with PHP.
 
 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml

2003-03-29 Thread Friedhelm Betz
betzSat Mar 29 10:16:52 2003 EDT

  Modified files:  
/phpdoc/en/reference/errorfunc  constants.xml 
  Log:
  unix linendings
  
  Index: phpdoc/en/reference/errorfunc/constants.xml
diff -u phpdoc/en/reference/errorfunc/constants.xml:1.5 
phpdoc/en/reference/errorfunc/constants.xml:1.6
--- phpdoc/en/reference/errorfunc/constants.xml:1.5 Tue Oct  8 06:44:00 2002
+++ phpdoc/en/reference/errorfunc/constants.xml Sat Mar 29 10:16:52 2003
@@ -1,192 +1,192 @@
-
-
-
- &reftitle.constants;
- &extension.constants.core;
-  
-   
-You may use these constant names in &php.ini; but not outside
-of PHP, like in httpd.conf, where you'd 
-use the bitmask values instead.
-   
-  
- 
-  Errors and Logging
-  
-   
-
- Value
- Constant
- Description
- Note
-
-   
-   
-
- 1
- 
-  E_ERROR 
-  (integer)
- 
- 
-  Fatal run-time errors. These indicate errors that can not be
-  recovered from, such as a memory allocation problem.
-  Execution of the script is halted.
- 
- 
-
-
-
- 2
- 
-  E_WARNING 
-  (integer)
- 
- 
-  Run-time warnings (non-fatal errors). Execution of the script is not
-  halted.
- 
- 
-
-
-
- 4
- 
-  E_PARSE 
-  (integer)
- 
- 
-  Compile-time parse errors. Parse errors should only be generated by
-  the parser.
- 
- 
-
-
-
- 8
- 
-  E_NOTICE 
-  (integer)
- 
- 
-  Run-time notices. Indicate that the script encountered something that
-  could indicate an error, but could also happen in the normal course of
-  running a script.
- 
- 
-
-
-
- 16
- 
-  E_CORE_ERROR 
-  (integer)
- 
- 
-  Fatal errors that occur during PHP's initial startup. This is like an
-  E_ERROR, except it is generated by the core of PHP.
- 
- PHP 4 only
-
-
-
- 32
- 
-  E_CORE_WARNING 
-  (integer)
- 
- 
-  Warnings (non-fatal errors) that occur during PHP's initial startup.
-  This is like an E_WARNING, except it is generated
-  by the core of PHP.
- 
- PHP 4 only
-
-
-
- 64
- 
-  E_COMPILE_ERROR 
-  (integer)
- 
- 
-  Fatal compile-time errors. This is like an E_ERROR,
-  except it is generated by the Zend Scripting Engine.
- 
- PHP 4 only
-
-
-
- 128
- 
-  E_COMPILE_WARNING 
-  (integer)
- 
- 
-  Compile-time warnings (non-fatal errors). This is like an
-  E_WARNING, except it is generated by the Zend
-  Scripting Engine.
- 
- PHP 4 only
-
-
-
- 256
- 
-  E_USER_ERROR 
-  (integer)
- 
- 
-  User-generated error message. This is like an
-  E_ERROR, except it is generated in PHP code by
-  using the PHP function trigger_error.
- 
- PHP 4 only
-
-
-
- 512
- 
-  E_USER_WARNING 
-  (integer)
- 
- 
-  User-generated warning message. This is like an
-  E_WARNING, except it is generated in PHP code by
-  using the PHP function trigger_error.
- 
- PHP 4 only
-
-
-
- 1024
- 
-  E_USER_NOTICE 
-  (integer)
- 
- 
-  User-generated notice message. This is like an
-  E_NOTICE, except it is generated in PHP code by
-  using the PHP function trigger_error.
- 
- PHP 4 only
-
-
-
- 2047
- 
-  E_ALL 
-  (integer)
- 
- 
-  All errors and warnings, as supported.
- 
-
-
-   
-  
- 
-
+
+
+
+ &reftitle.constants;
+ &extension.constants.core;
+  
+   
+You may use these constant names in &php.ini; but not outside
+of PHP, like in httpd.conf, where you'd 
+use the bitmask values instead.
+   
+  
+ 
+  Errors and Logging
+  
+   
+
+ Value
+ Constant
+ Description
+ Note
+
+   
+   
+
+ 1
+ 
+  E_ERROR 
+  (integer)
+ 
+ 
+  Fatal run-time errors. These indicate errors that can not be
+  recovered from, such as a memory allocation problem.
+  Execution of the script is halted.
+ 
+ 
+
+
+
+ 2
+ 
+  E_WARNING 
+  (integer)
+ 
+ 
+  Run-time warnings (non-fatal errors). Execution of the script is not
+  halted.
+ 
+ 
+
+
+
+ 4
+ 
+  E_PARSE 
+  (integer)
+ 
+ 
+  Compile-time parse errors. Parse errors should only be generated by
+  the parser.
+ 
+ 
+
+
+
+ 8
+ 
+  E_NOTICE 
+  (integer)
+ 
+ 
+  Run-time notices. Indicate that the script encountered something that
+  could indicate an error, but could also happen in the normal course of
+  running a script.
+ 
+ 
+
+
+
+ 16
+ 
+  E_CORE_ERROR 
+  (integer)
+ 
+ 
+  Fatal errors that occur durin

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

2003-03-29 Thread Friedhelm Betz
betzSat Mar 29 10:15:45 2003 EDT

  Modified files:  
/phpdoc/en/reference/datetime/functions localtime.xml 
  Log:
  parameter timestamp further explained
  
  
Index: phpdoc/en/reference/datetime/functions/localtime.xml
diff -u phpdoc/en/reference/datetime/functions/localtime.xml:1.2 
phpdoc/en/reference/datetime/functions/localtime.xml:1.3
--- phpdoc/en/reference/datetime/functions/localtime.xml:1.2Wed Apr 17 02:37:11 
2002
+++ phpdoc/en/reference/datetime/functions/localtime.xmlSat Mar 29 10:15:45 
2003
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -21,7 +21,8 @@
  The localtime function returns an array
  identical to that of the structure returned by the C function
  call.  The first argument to localtime is
- the timestamp, if this is not given the current time is used.
+ the timestamp, if this is not given the current time as returned
+ from time is used.
  The second argument to the localtime is the
  is_associative, if this is set to 0 or not
  supplied than the array is returned as a regular, numerically



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] cvs: phpdoc /entities global.ent

2003-03-29 Thread Friedhelm Betz
betzSat Mar 29 10:12:47 2003 EDT

  Modified files:  
/phpdoc/entitiesglobal.ent 
  Log:
  httpd.conf and .htaccess entities
  
  
Index: phpdoc/entities/global.ent
diff -u phpdoc/entities/global.ent:1.84 phpdoc/entities/global.ent:1.85
--- phpdoc/entities/global.ent:1.84 Sun Mar 16 00:39:13 2003
+++ phpdoc/entities/global.ent  Sat Mar 29 10:12:47 2003
@@ -1,6 +1,6 @@
 
  
 php.ini'>
+httpd.conf'>
+.htaccess'>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] Notes Status, 9380 total

2003-03-29 Thread phpdoc
Following are the top 20 pages of the manual, sorted by the number
of user notes contributed. These sections could use a polish, those
notes represent 11.0% of the 9380 total user notes.

Notes  |  Page
---+-
   74  | http://php.net/manual/en/function.preg-replace.php
   71  | http://php.net/manual/en/language.oop.php
   67  | http://php.net/manual/en/function.header.php
   61  | http://php.net/manual/en/function.date.php
   59  | http://php.net/manual/en/ref.imap.php
   58  | http://php.net/manual/en/features.file-upload.php
   58  | http://php.net/manual/en/ref.pdf.php
   56  | http://php.net/manual/en/function.fopen.php
   55  | http://php.net/manual/en/ref.mail.php
   50  | http://php.net/manual/en/function.exec.php
   46  | http://php.net/manual/en/ref.domxml.php
   44  | http://php.net/manual/en/ref.exec.php
   44  | http://php.net/manual/en/function.mktime.php
   43  | http://php.net/manual/en/function.eval.php
   43  | http://php.net/manual/en/ref.oci8.php
   43  | http://php.net/manual/en/function.mssql-connect.php
   42  | http://php.net/manual/en/ref.datetime.php
   41  | http://php.net/manual/en/function.imagettftext.php
   40  | http://php.net/manual/en/function.strtotime.php
   39  | http://php.net/manual/en/function.imagecopyresized.php


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DOC] #22749 [Opn]: Classes outside of namespaces cannot be called.

2003-03-29 Thread mfischer
 ID:   22749
 Updated by:   [EMAIL PROTECTED]
 Reported By:  eric at evilwalrus dot com
 Status:   Open
-Bug Type: Zend Engine 2 problem
+Bug Type: Documentation problem
 Operating System: Windows XP
 PHP Version:  5CVS-2003-03-17 (dev)
 New Comment:

Thanks to Marcus who brought light into this:

You access classes from the global namespace by ommiting the
namespace-name part:

new ::TestClass2();

is the proper syntax. Same for my exception extending problem:

php -r 'namespace myscope { class myexception extends ::exception { }
}'

Marking as a documentation problem (it's not in ZEND_CHANGES even).


Previous Comments:


[2003-03-27 17:58:25] [EMAIL PROTECTED]

Also pretty annoying if you want to declare a class extending the main
exception class in your namespace. It simply doesn't work because its
not "seen":

$ php -r 'class myexception extends exception { } '
[no error, works]

$ php -r 'namespace myscope { class myexception extends exception { }
}'
Command line code(1) : Fatal error - Class 'exception' not found

I couldn't find a way to reference the global namespace.



[2003-03-17 11:33:25] eric at evilwalrus dot com

If I have the following script, the class that is defined before the
namespace cannot be called from within a class in the namespace.

newClass();
}

class TestClass
{
function __construct()
{
print "TestClass\n";
}

function newClass ()
{
$new = new TestClass2();
}
}
}

Test::newClass();
//$new = new TestClass2();
?>

This example will show the error "Fatal error: Class 'testclass2' not
found in c:\usr\test.php on line 26" I'm assuming that this is done by
design... but I would think that PHP would look for the class outside
of the namespace since it is defined before the namespace. If you use
the commented out line $new = new TestClass2; instead of the
Test::newClass(); then it works properly, and the TestClass2 construct
is called.

As I said, I think this is done by design and isn't a bug... but I
thought I would submit it because I'm not for sure. Any explination
though would be very helpful to me. Thanks.




-- 
Edit this bug report at http://bugs.php.net/?id=22749&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php