[PHP-DEV] Session id

2005-09-16 Thread David Vance
Hello, first I'm inquiring about this: http://bugs.php.net/bug.php?id=23681 Currently (in 5.0.3 at least), if someone makes a request with invalid session id characters, Warnings are output: PHP Warning: session_start(): The session id contains illegal characters, valid characters are a-z, A-Z,

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-15 Thread David Vance
As a decreasingly "hardcore" php user, any and/or all items on Rasmus' wishlist would be welcome. However, to comment on two items The strpos/in_array argument swap is one of my greatest joys in PHP. It keeps it lively. So I did a quick grep of the manual for "needle/haystack" type functions,

Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-21 Thread David Vance
if(any_empty($var1, $var2, $var3)) return "there's an empty var"; if(!any_empty($var1, $var2, $var3)) return "there's no empty vars"; if (all_set($var1, $var2, $var3)) return "all vars are set"; if (!all_set($var1, $var2, $var3)) return "there's an unset var"; but how would you find out which var

Re: [PHP-DEV] switch() and default:

2004-10-07 Thread David Vance
prints "a" on 4.2.3 Novell, 4.3.3 Linux, 5.0.0 Windows. On Fri, October 8, 2004 12:21 am, Benj Carson said: > Hi, > > Sorry, I forgot to CC my last reply to the list. I noticed similar > behaviour and filed a bug report: 30285. The case described in the bug > report is as follows: > > $x = "a";

Re: [PHP-DEV] mail() on windows

2004-08-18 Thread David Vance
ok thanks. but still, how is it that mail('[EMAIL PROTECTED]','subject','body',"From: [EMAIL PROTECTED]"); should produce an error message stating "custom "From:" header missing"? and is there any reason the custom header can't be parsed, and if a "From:" header is found, to use that instead of

[PHP-DEV] mail() on windows

2004-08-18 Thread David Vance
sorry in advance for the length, formatting and possible redundancy of this message. Anyway, on Windows, leaving "sendmail_from" blank and setting a "From:" header in the extra headers parameter doesn't work. test.php: http://bugs.php.net/bug.php?id=28976 there are also a couple user notes on th