[PHP-DEV] Bug #14897 Updated: unable to fork - cause solution (well, at least for me)

2002-01-21 Thread davidfelton

ID: 14897
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Program Execution
Operating System: Windows 2000
PHP Version: 4.1.1
New Comment:

Is there a way to enable access to cmd.exe so that it is only available
to php.exe?
Or a way of stopping php prepending cmd.exe /c  in front of any calls
to exec?

thanks.


Previous Comments:


[2002-01-17 19:40:26] [EMAIL PROTECTED]

this is a suggestion to the developers to do, because the only way for
a script writer to solve this is to enabled access to cmd.exe which
many would perfer to not have to do.



[2002-01-17 05:56:27] [EMAIL PROTECTED]

clarification: is this a suggestion of a way to fix the problem myself
(so I can call programs), or a suggestion to the developers?



[2002-01-06 22:00:12] [EMAIL PROTECTED]

in 4.0.6, popen() would just call CreateProcess() with the specified
command.

this was ok.

in 4.1.0 popen() now prepends cmd.exe /c  (or command.com /c  on
win9x).

the problem with this, is that many web admins will disable access for
the web apps to access cmd.exe (eg, MS's IISLockDown does this), and
hence even though the web app may have access to c:\utils\myapp.exe, a
command like exec(c:\utils\myapp.exe) now fails on 4.1.0 but works on
on 4.0.6.

also, the hardcoding of cmd.exe should not be done.  it should get it
from the enviroment.

summary:

have commands that prepend the result of an enviroment lookup on
%comspec% /c  to the front of a command

AND

have commands that dont, so that I can call exec(c:\utils\myapp.exe);
 without having to enable access to cmd.exe

OR

any interpretation of these issues, that allow for a sensible amount of
flexibilty.

Louis Solomon
www.SteelBytes.com







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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14897 Updated: unable to fork - cause solution (well, at least for me)

2002-01-17 Thread davidfelton

ID: 14897
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Program Execution
Operating System: Windows 2000
PHP Version: 4.1.1
New Comment:

clarification: is this a suggestion of a way to fix the problem myself
(so I can call programs), or a suggestion to the developers?


Previous Comments:


[2002-01-06 22:00:12] [EMAIL PROTECTED]

in 4.0.6, popen() would just call CreateProcess() with the specified
command.

this was ok.

in 4.1.0 popen() now prepends cmd.exe /c  (or command.com /c  on
win9x).

the problem with this, is that many web admins will disable access for
the web apps to access cmd.exe (eg, MS's IISLockDown does this), and
hence even though the web app may have access to c:\utils\myapp.exe, a
command like exec(c:\utils\myapp.exe) now fails on 4.1.0 but works on
on 4.0.6.

also, the hardcoding of cmd.exe should not be done.  it should get it
from the enviroment.

summary:

have commands that prepend the result of an enviroment lookup on
%comspec% /c  to the front of a command

AND

have commands that dont, so that I can call exec(c:\utils\myapp.exe);
 without having to enable access to cmd.exe

OR

any interpretation of these issues, that allow for a sensible amount of
flexibilty.

Louis Solomon
www.SteelBytes.com







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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14510 Updated: Unknown error in mail function

2001-12-18 Thread davidfelton

ID: 14510
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Mail related
Operating System: Windows 2000 Terminal, IIS5
PHP Version: 4.1.0
New Comment:

So, any other ideas?

Previous Comments:


[2001-12-17 04:20:17] [EMAIL PROTECTED]

smtp server is set to be localhost, which works fine with php 4.0.6



[2001-12-14 12:19:09] [EMAIL PROTECTED]

What are your INI-settings about mail? I.e., your smtp-server, etc...



[2001-12-14 10:58:01] [EMAIL PROTECTED]

Well it's pretty straight forward:

$mailrecipient=[EMAIL PROTECTED];
$mailsubject=A message from your friend;
$mailmessage=Hello, this is an email sent with PHP;
$mailheaders=From: Dave [EMAIL PROTECTED];

mail($mailrecipient,$mailsubject,$mailmessage,$mailheaders);



[2001-12-14 10:52:55] [EMAIL PROTECTED]

Can you provide a sample script?



[2001-12-14 05:29:31] [EMAIL PROTECTED]

When using the mail function on windows 2000 with IIS5, it just returns 'unknown 
error' and exits. The mail function works fine on windows 98 with OmniHTTPd.





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14510 Updated: Unknown error in mail function

2001-12-17 Thread davidfelton

ID: 14510
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Mail related
Operating System: Windows 2000 Terminal, IIS5
PHP Version: 4.1.0
New Comment:

smtp server is set to be localhost, which works fine with php 4.0.6

Previous Comments:


[2001-12-14 12:19:09] [EMAIL PROTECTED]

What are your INI-settings about mail? I.e., your smtp-server, etc...



[2001-12-14 10:58:01] [EMAIL PROTECTED]

Well it's pretty straight forward:

$mailrecipient=[EMAIL PROTECTED];
$mailsubject=A message from your friend;
$mailmessage=Hello, this is an email sent with PHP;
$mailheaders=From: Dave [EMAIL PROTECTED];

mail($mailrecipient,$mailsubject,$mailmessage,$mailheaders);



[2001-12-14 10:52:55] [EMAIL PROTECTED]

Can you provide a sample script?



[2001-12-14 05:29:31] [EMAIL PROTECTED]

When using the mail function on windows 2000 with IIS5, it just returns 'unknown 
error' and exits. The mail function works fine on windows 98 with OmniHTTPd.





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14510: Unknown error in mail function

2001-12-14 Thread davidfelton

From: [EMAIL PROTECTED]
Operating system: Windows 2000 Terminal, IIS5
PHP version:  4.1.0
PHP Bug Type: Unknown/Other Function
Bug description:  Unknown error in mail function

When using the mail function on windows 2000 with IIS5, it just returns
'unknown error' and exits. The mail function works fine on windows 98 with
OmniHTTPd.
-- 
Edit bug report at: http://bugs.php.net/?id=14510edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14510 Updated: Unknown error in mail function

2001-12-14 Thread davidfelton

ID: 14510
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows 2000 Terminal, IIS5
PHP Version: 4.1.0
New Comment:

Well it's pretty straight forward:

$mailrecipient=[EMAIL PROTECTED];
$mailsubject=A message from your friend;
$mailmessage=Hello, this is an email sent with PHP;
$mailheaders=From: Dave [EMAIL PROTECTED];

mail($mailrecipient,$mailsubject,$mailmessage,$mailheaders);

Previous Comments:


[2001-12-14 10:52:55] [EMAIL PROTECTED]

Can you provide a sample script?



[2001-12-14 05:29:31] [EMAIL PROTECTED]

When using the mail function on windows 2000 with IIS5, it just returns 'unknown 
error' and exits. The mail function works fine on windows 98 with OmniHTTPd.





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14359 Updated: problem with exec and system, can't be fixed by 4.1.0RC4

2001-12-06 Thread davidfelton

ID: 14359
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Unknown/Other Function
Operating System: windows 2000 server, IIS5
PHP Version: 4.0.6
New Comment:

Crypt was the first one I came across, and since my site fundamentally requires the 
use of this function, I saw no sense in continuing further with 4.1.0RC4, and replaced 
it with 4.0.6

Previous Comments:


[2001-12-06 04:57:55] [EMAIL PROTECTED]

Status = feedback



[2001-12-06 04:57:39] [EMAIL PROTECTED]

What functions are not supported by RC4? only crypt?

Derick



[2001-12-06 04:56:16] [EMAIL PROTECTED]

I know this bug with 4.0.6 has already been reported - the exec, system functions all 
fail with the error 'cannot fork', the solution was to use one of the release 
candidates of PHP 4.1.0, which DOES fix the issue, on the other hand, these releases 
do not support functions (for example crypt) that are absolutely needed, therefore 
making the solution unusable.
I have been using 4.1.0RC4, and have since gone back to 4.0.6





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14359 Updated: Crypt is not enable in latest RC

2001-12-06 Thread davidfelton

ID: 14359
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Critical
Bug Type: Unknown/Other Function
Operating System: windows 2000 server, IIS5
PHP Version: 4.0.6
New Comment:

That's great. I hope it gets sorted soon, we had to close down a whole section of our 
website because we couldn't use the exec / system functions.

Previous Comments:


[2001-12-06 05:12:32] [EMAIL PROTECTED]

I changed the summary, and set the status to critical. It seems that crypt was not 
included in this build.
Setting the status to Critical will make it clear that the one doing the Windows 
builds does not forget to include it.

Derick



[2001-12-06 05:00:41] [EMAIL PROTECTED]

Crypt was the first one I came across, and since my site fundamentally requires the 
use of this function, I saw no sense in continuing further with 4.1.0RC4, and replaced 
it with 4.0.6



[2001-12-06 04:57:55] [EMAIL PROTECTED]

Status = feedback



[2001-12-06 04:57:39] [EMAIL PROTECTED]

What functions are not supported by RC4? only crypt?

Derick



[2001-12-06 04:56:16] [EMAIL PROTECTED]

I know this bug with 4.0.6 has already been reported - the exec, system functions all 
fail with the error 'cannot fork', the solution was to use one of the release 
candidates of PHP 4.1.0, which DOES fix the issue, on the other hand, these releases 
do not support functions (for example crypt) that are absolutely needed, therefore 
making the solution unusable.
I have been using 4.1.0RC4, and have since gone back to 4.0.6





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14160: associative arrays - cannot use exclamation mark in key!

2001-11-21 Thread davidfelton

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.6
PHP Bug Type: Arrays related
Bug description:  associative arrays - cannot use exclamation mark in key!

if you have an array where the key is a string like
$arrayname[a string here!]. You will not be able to pull the value for
that key from the array. Removing the exclamation mark in the key fixes
this bug.
-- 
Edit bug report at: http://bugs.php.net/?id=14160edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14160 Updated: associative arrays - cannot use exclamation mark in key!

2001-11-21 Thread davidfelton

ID: 14160
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Arrays related
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:

$translations=Array();
$translations[Register Now for Free!]=¡Regístrate ya gratis!;
echo $translations[Register Now for Free!];


will print nothing, or an error about undefined index, depending on your error 
settings in php.ini. As I said before, removing the exclamation mark in the key fixes 
the problem.

Previous Comments:


[2001-11-21 10:08:25] [EMAIL PROTECTED]

Works for me on 4.0.6 , Linux.

Please give the shortest reproduceable script.

Feedback.



[2001-11-21 10:04:02] [EMAIL PROTECTED]

if you have an array where the key is a string like
$arrayname[a string here!]. You will not be able to pull the value for that key from 
the array. Removing the exclamation mark in the key fixes this bug.





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14160 Updated: associative arrays - cannot use exclamation mark in key!

2001-11-21 Thread davidfelton

ID: 14160
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Arrays related
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:

Maybe it is a windows thingie, specifically windows 2000, I don't have the same 
problem with 4.0.4pl1 and IIS4. If it helps, I'm using the PHP Installer version of 
4.0.6 (CGI)

Previous Comments:


[2001-11-21 10:22:38] [EMAIL PROTECTED]

Can't reproduce this on FreeBSD 4.2-Stable and PHP 4.1.0RC3 as cgi or RC2 as mod_php. 
maybe a windows thingie ?




[2001-11-21 10:22:24] [EMAIL PROTECTED]

Sorry, of course I meant

http://phpuk.org/~james/php-4.1.0RC3-win32.zip





[2001-11-21 10:20:43] [EMAIL PROTECTED]

Works for me:
[chroot] mfischer@ficken:~/src/php/bugtest$ php
?
$translations=Array(); 
  $translations[Register Now for Free!]=¡Regístrate ya gratis!;
echo $translations[Register Now for Free!];
?
X-Powered-By: PHP/4.0.6-dev
Content-type: text/html

¡Regístrate ya gratis![chroot] mfischer@ficken:~/src/php/bugtest$ 

Hmm probably dumb question, are you really running 4.0.6?

Can you try latest RC

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.



[2001-11-21 10:15:34] [EMAIL PROTECTED]

$translations=Array();
$translations[Register Now for Free!]=¡Regístrate ya gratis!;
echo $translations[Register Now for Free!];


will print nothing, or an error about undefined index, depending on your error 
settings in php.ini. As I said before, removing the exclamation mark in the key fixes 
the problem.



[2001-11-21 10:08:25] [EMAIL PROTECTED]

Works for me on 4.0.6 , Linux.

Please give the shortest reproduceable script.

Feedback.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=14160


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14160 Updated: associative arrays - cannot use exclamation mark in key!

2001-11-21 Thread davidfelton

ID: 14160
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Arrays related
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:

Maybe it is a windows thingie, specifically windows 2000, I don't have the same 
problem with 4.0.4pl1 and IIS4. If it helps, I'm using the PHP Installer version of 
4.0.6 (CGI)

Previous Comments:


[2001-11-21 10:31:09] [EMAIL PROTECTED]

Can't reproduce this under win32 (but only have some 4.0.8-dev).

Lets wait what he reports back with RC



[2001-11-21 10:27:59] [EMAIL PROTECTED]

Maybe it is a windows thingie, specifically windows 2000, I don't have the same 
problem with 4.0.4pl1 and IIS4. If it helps, I'm using the PHP Installer version of 
4.0.6 (CGI)



[2001-11-21 10:22:38] [EMAIL PROTECTED]

Can't reproduce this on FreeBSD 4.2-Stable and PHP 4.1.0RC3 as cgi or RC2 as mod_php. 
maybe a windows thingie ?




[2001-11-21 10:22:24] [EMAIL PROTECTED]

Sorry, of course I meant

http://phpuk.org/~james/php-4.1.0RC3-win32.zip





[2001-11-21 10:20:43] [EMAIL PROTECTED]

Works for me:
[chroot] mfischer@ficken:~/src/php/bugtest$ php
?
$translations=Array(); 
  $translations[Register Now for Free!]=¡Regístrate ya gratis!;
echo $translations[Register Now for Free!];
?
X-Powered-By: PHP/4.0.6-dev
Content-type: text/html

¡Regístrate ya gratis![chroot] mfischer@ficken:~/src/php/bugtest$ 

Hmm probably dumb question, are you really running 4.0.6?

Can you try latest RC

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=14160


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14160 Updated: associative arrays - cannot use exclamation mark in key!

2001-11-21 Thread davidfelton

ID: 14160
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Arrays related
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:

Maybe it is a windows thingie, specifically windows 2000, I don't have the same 
problem with 4.0.4pl1 and IIS4. If it helps, I'm using the PHP Installer version of 
4.0.6 (CGI)

Previous Comments:


[2001-11-21 10:32:22] [EMAIL PROTECTED]

Maybe it is a windows thingie, specifically windows 2000, I don't have the same 
problem with 4.0.4pl1 and IIS4. If it helps, I'm using the PHP Installer version of 
4.0.6 (CGI)



[2001-11-21 10:31:09] [EMAIL PROTECTED]

Can't reproduce this under win32 (but only have some 4.0.8-dev).

Lets wait what he reports back with RC



[2001-11-21 10:27:59] [EMAIL PROTECTED]

Maybe it is a windows thingie, specifically windows 2000, I don't have the same 
problem with 4.0.4pl1 and IIS4. If it helps, I'm using the PHP Installer version of 
4.0.6 (CGI)



[2001-11-21 10:22:38] [EMAIL PROTECTED]

Can't reproduce this on FreeBSD 4.2-Stable and PHP 4.1.0RC3 as cgi or RC2 as mod_php. 
maybe a windows thingie ?




[2001-11-21 10:22:24] [EMAIL PROTECTED]

Sorry, of course I meant

http://phpuk.org/~james/php-4.1.0RC3-win32.zip





The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=14160


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14160 Updated: associative arrays - cannot use exclamation mark in key!

2001-11-21 Thread davidfelton

ID: 14160
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Arrays related
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:

Sorry, I am working to a strict (and rapidly approaching) deadline on this website and 
cannot afford to be installing new versions of PHP on the server. If the machine was 
in my office or my personal machine it would be fine but I'm sorry fellas!
I have found a workaround for the moment (leaving the exclamation mark out) and I am 
happy with that for the moment.

Previous Comments:


[2001-11-21 10:38:12] [EMAIL PROTECTED]

Mixep up name, sorry :)

You can test RC please

http://phpuk.org/~james/php-4.1.0RC3-win32.zip



[2001-11-21 10:32:56] [EMAIL PROTECTED]

Maybe it is a windows thingie, specifically windows 2000, I don't have the same 
problem with 4.0.4pl1 and IIS4. If it helps, I'm using the PHP Installer version of 
4.0.6 (CGI)



[2001-11-21 10:32:22] [EMAIL PROTECTED]

Maybe it is a windows thingie, specifically windows 2000, I don't have the same 
problem with 4.0.4pl1 and IIS4. If it helps, I'm using the PHP Installer version of 
4.0.6 (CGI)



[2001-11-21 10:31:09] [EMAIL PROTECTED]

Can't reproduce this under win32 (but only have some 4.0.8-dev).

Lets wait what he reports back with RC



[2001-11-21 10:27:59] [EMAIL PROTECTED]

Maybe it is a windows thingie, specifically windows 2000, I don't have the same 
problem with 4.0.4pl1 and IIS4. If it helps, I'm using the PHP Installer version of 
4.0.6 (CGI)



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=14160


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]