Re: [PHP-DEV] mail() and header folding/line endings
Joey Smith: It's hard to know what to tell PHP developers when we get mixed messages from someone like Wietse... No, it's not so hard. PHP developers must follow the standard: - use network EOL (CRNL) when speaking SMTP; - use system EOL (CRNL or NL or CR) when speaking with local MTA. Eventually mail() should convert mixed line-endings to right line-endings, and right line-endings may be selected by the system administrator (a php.ini mail_line_ending = system|network switch?). As for other vendors, I can tell you first-hand that sendmail and exim both handle mixed line-endings just fine. Actually a real PHP programmer is not using mail() at all, because nobody know where the application will be installed. -- Tullio Andreatta Disclaimer: Please treat this email message in a reasonable way, or we might get angry ( http://www.goldmark.org/jeff/stupid-disclaimers ) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Array syntax []
+1 (option b) -- Tullio Andreatta 09:f9:11:02:9d:74:e3:5b:d8:41:56:c5:63:56:88:c0 45:5f:e1:04:22:ca:29:c4:93:3f:95:05:2b:79:2a:b2 Disclaimer: Please treat this email message in a reasonable way, or we might get angry ( http://www.goldmark.org/jeff/stupid-disclaimers ) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Syntactic improvement to array
how it is different? How explaining array written as [] so much harder that explaining array written as ()? What exactly constitutes the problem? Here's the difference: You can Google for 'array' and learn a lot. If you try to Google for [] you don't learn squat. Try it and see. So our 'newbie' at least has a good chance of figuring out array(1, 2, 3) on their own. They've got must worse odds of figuring out [1,2,3] Ok. So I propose more searcheable operators: let($i, 1) === $i = 1 let($d, add($a, $b, $c)) === $d = $a + $b + $c call(foo, $arg1, $arg2)=== foo($arg1, $arg2) :-) Our 'newbie' at least has a good chance of figuring out $a = [1,2,3] vs.$a = array(1,2,3) is different than $a = foobar(1,2,3) -- Tullio Andreatta Disclaimer: Please treat this email message in a reasonable way, or we might get angry ( http://www.goldmark.org/jeff/stupid-disclaimers ) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php