php-windows Digest 20 Feb 2006 04:06:09 -0000 Issue 2892

Topics (messages 26712 through 26715):

php_win32service.dll - constants defined multiple times?
        26712 by: Nathan Bessette
        26713 by: Frank M. Kromann

Using the Mail function without an SMTP?
        26714 by: Daniel Anderson
        26715 by: Armando

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Using php 5.1.2 with the php_win32service.dll extension(downloaded for 
5.1.2). The only line I've added to php.ini is as follows:

extension = php_win32service.dll

Now, each and every file that I run through php.exe (even a blank file), 
generates
a series of notices regarding double-defined constants:

PHP Notice: Constant WIN32_SERVICE_STOPPED already defined in
Unknown on line 0
PHP Notice: Constant WIN32_SERVICE_STOP_PENDING already defined in
Unknown on line 0
PHP Notice: Constant WIN32_SERVICE_RUNNING already defined in
Unknown on line 0

Setting error_reporting(0) in the php file does nothing, the notices are 
still printed
to the terminal -- I assume because the constants are set internally before 
processing of the php file begins. The only solution I've found to this is 
to remove E_NOTICE from the list of errors reported in php.ini.

Bug? 

--- End Message ---
--- Begin Message ---
Hi,

That's a bug. I have just commited a fix. Thsis will be available in the
next build.

- Frank

> Using php 5.1.2 with the php_win32service.dll extension(downloaded for 
> 5.1.2). The only line I've added to php.ini is as follows:
> 
> extension = php_win32service.dll
> 
> Now, each and every file that I run through php.exe (even a blank file),

> generates
> a series of notices regarding double-defined constants:
> 
> PHP Notice: Constant WIN32_SERVICE_STOPPED already defined in
> Unknown on line 0
> PHP Notice: Constant WIN32_SERVICE_STOP_PENDING already defined in
> Unknown on line 0
> PHP Notice: Constant WIN32_SERVICE_RUNNING already defined in
> Unknown on line 0
> 
> Setting error_reporting(0) in the php file does nothing, the notices are

> still printed
> to the terminal -- I assume because the constants are set internally
before 
> processing of the php file begins. The only solution I've found to this
is 
> to remove E_NOTICE from the list of errors reported in php.ini.
> 
> Bug? 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Is there a way I can use the Mail(); function without having to have an SMTP 
server?

PHPBB doesn't use it, I tried browsing the source code to see how they did 
it... but they compressed their PHP files, so it is extremely difficult to read.

Does anyone know know how I may do the same please?

Many thanks!

Warmest Regards,
    Dan

--- End Message ---
--- Begin Message --- No, you must have an SMTP server. And phpBB does use one. You have to specify the server settings in the configuration section of the administration panel in phpBB. Cheers.

Armando

Daniel Anderson wrote:
Is there a way I can use the Mail(); function without having to have an SMTP 
server?

PHPBB doesn't use it, I tried browsing the source code to see how they did 
it... but they compressed their PHP files, so it is extremely difficult to read.

Does anyone know know how I may do the same please?

Many thanks!

Warmest Regards,
    Dan

--- End Message ---

Reply via email to