Re: [PHP-DEV] dropping asp_tags in HEAD
I suggest adding a new php.ini option: ignore_xml_tags, default to on, which would cause the parser to just ignore ?xml .. ? tags. -- // DvDmanDT mail: dvdmandt¤telia.com msn: dvdmandt¤hotmail.com Bart de Boer [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I think ASP tags should go too... Simply because it's not standards compliant and I think it's good if people are forced to make nice standards compliant documents... I'd even go so far as to favor dropping short tags too... ? echo ?xml version=\1.0\ encoding=\UTF-8\ ?\n; ? What a mess!... Guilherme Blanco wrote: I really can't see a reason to mantain ASP tags. Ok, short tags is good because of ?=$something?, but it doesn't behavior well with XML documents. So, if your intention is to change short tags to ASP tag in a near future, ok. ASP tags does not mix XML documents. Otherwise, ASP tags is the most useless thing I've ever heard in PHP sphere. I really don't know why wasn't it dropped in PHP5. That's what I think... IMHO. []s, On 4/13/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/13/07, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, April 13, 2007 9:16 am, Tijnema ! wrote: I don't see why you are all against dropping the ASP tags. I see people using ASP PHP in one script, what would that do? If ASP runs first then there isn't a problem, but if PHP runs first, it would execute the ASP code. There are actually people running both PHP and ASP in series to generate HTML? If they are, they can turn ASP tags *OFF* in php.ini And they certainly aren't going to be distributing that setup outside their own little world... I've seen such code on the net some time ago... But should you distribute PHP code with ASP tags? That's not good either i think. So there's no use of the ASP tags, and they can only interfere with ASP. Tijnema -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev
On Sat, April 14, 2007 8:29 pm, Antony Dovgal wrote: On 04/14/2007 08:50 PM, Sebastian Nohn wrote: On PHP 5.2.1, ZendFramework 0.8.0 Unit Tests pass, while they fail on PHP 5.2.2-dev (latest CVS) on the same machine: 1) testDate(Zend_Date_DateObjectTest) Failed asserting that string:69 is identical to string:6.9E+9 .../tests/Zend/Date/DateObjectTest.php:408 Would be nice to have a short but complete reproduce case. Referring to some test (which I personally have never seen) is not really helpful. This was the idea why PHP and ZF developers should come together. However, I investigated the issue and here is a small testcase: ?php $a = 69; var_dump($a); $b = A is: .$a; var_dump($b); ? 5.2.1 output is: float(6.9E+9) string(16) A is: 69 5.2.2-dev output is: float(6.9E+9) string(12) A is: 6.9E+9 - Sebastian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] dropping asp_tags in HEAD
Hello David, we're not going to add ini settings just to support worse code. best regards marcus Sunday, April 15, 2007, 8:14:12 AM, you wrote: I suggest adding a new php.ini option: ignore_xml_tags, default to on, which would cause the parser to just ignore ?xml .. ? tags. -- // DvDmanDT mail: dvdmandt¤telia.com msn: dvdmandt¤hotmail.com Bart de Boer [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I think ASP tags should go too... Simply because it's not standards compliant and I think it's good if people are forced to make nice standards compliant documents... I'd even go so far as to favor dropping short tags too... ? echo ?xml version=\1.0\ encoding=\UTF-8\ ?\n; ? What a mess!... Guilherme Blanco wrote: I really can't see a reason to mantain ASP tags. Ok, short tags is good because of ?=$something?, but it doesn't behavior well with XML documents. So, if your intention is to change short tags to ASP tag in a near future, ok. ASP tags does not mix XML documents. Otherwise, ASP tags is the most useless thing I've ever heard in PHP sphere. I really don't know why wasn't it dropped in PHP5. That's what I think... IMHO. []s, On 4/13/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/13/07, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, April 13, 2007 9:16 am, Tijnema ! wrote: I don't see why you are all against dropping the ASP tags. I see people using ASP PHP in one script, what would that do? If ASP runs first then there isn't a problem, but if PHP runs first, it would execute the ASP code. There are actually people running both PHP and ASP in series to generate HTML? If they are, they can turn ASP tags *OFF* in php.ini And they certainly aren't going to be distributing that setup outside their own little world... I've seen such code on the net some time ago... But should you distribute PHP code with ASP tags? That's not good either i think. So there's no use of the ASP tags, and they can only interfere with ASP. Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] dropping asp_tags in HEAD
The XML standard... HTML 4.01 compliance seems a bit trivial since there's already so much forgiveness going on around that spec anyway... Oliver Block wrote: Am Samstag, 14. April 2007 11:49 schrieb Bart de Boer: PHP's convention is currently responsible for people creating non-standards-compliant documents... And I think we should take that responsibility and clean up the mess we made... The XML spec is outside our scope... What's inside ?php tags is our business... About which standard are you talking? Regards, Oliver Tijnema ! wrote: On 4/14/07, Bart de Boer [EMAIL PROTECTED] wrote: I think ASP tags should go too... Simply because it's not standards compliant and I think it's good if people are forced to make nice standards compliant documents... I'd even go so far as to favor dropping short tags too... ? echo ?xml version=\1.0\ encoding=\UTF-8\ ?\n; ? What a mess!... What about the even shorter version: ?=?xml version=\1.0\ encoding=\UTF-8\ ?\n; ? That's real ugly code... Tijnema Guilherme Blanco wrote: I really can't see a reason to mantain ASP tags. Ok, short tags is good because of ?=$something?, but it doesn't behavior well with XML documents. So, if your intention is to change short tags to ASP tag in a near future, ok. ASP tags does not mix XML documents. Otherwise, ASP tags is the most useless thing I've ever heard in PHP sphere. I really don't know why wasn't it dropped in PHP5. That's what I think... IMHO. []s, On 4/13/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/13/07, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, April 13, 2007 9:16 am, Tijnema ! wrote: I don't see why you are all against dropping the ASP tags. I see people using ASP PHP in one script, what would that do? If ASP runs first then there isn't a problem, but if PHP runs first, it would execute the ASP code. There are actually people running both PHP and ASP in series to generate HTML? If they are, they can turn ASP tags *OFF* in php.ini And they certainly aren't going to be distributing that setup outside their own little world... I've seen such code on the net some time ago... But should you distribute PHP code with ASP tags? That's not good either i think. So there's no use of the ASP tags, and they can only interfere with ASP. Tijnema -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP6 todo list
Stanislav Malyshev wrote: Fine, let's step back for a bit. What I want to be able to do is have objects/arrays as internal properties and constants. Can we make that possible? Last time I looked it required having persistent zvals. I think to better understand what would be required a use case would help a lot. Could you bring forward 1-2 scenarios how one would use it? Initializing a static class resp. default instance variable with f.e. an array is an obvious use case. Regards, -- Michael -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] dropping asp_tags in HEAD
Hello Bart, HTML is an SGML application while XHTML is an XML application. And XML is basically a subset of SGML... best regards marcus Sunday, April 15, 2007, 12:30:01 PM, you wrote: The XML standard... HTML 4.01 compliance seems a bit trivial since there's already so much forgiveness going on around that spec anyway... Oliver Block wrote: Am Samstag, 14. April 2007 11:49 schrieb Bart de Boer: PHP's convention is currently responsible for people creating non-standards-compliant documents... And I think we should take that responsibility and clean up the mess we made... The XML spec is outside our scope... What's inside ?php tags is our business... About which standard are you talking? Regards, Oliver Tijnema ! wrote: On 4/14/07, Bart de Boer [EMAIL PROTECTED] wrote: I think ASP tags should go too... Simply because it's not standards compliant and I think it's good if people are forced to make nice standards compliant documents... I'd even go so far as to favor dropping short tags too... ? echo ?xml version=\1.0\ encoding=\UTF-8\ ?\n; ? What a mess!... What about the even shorter version: ?=?xml version=\1.0\ encoding=\UTF-8\ ?\n; ? That's real ugly code... Tijnema Guilherme Blanco wrote: I really can't see a reason to mantain ASP tags. Ok, short tags is good because of ?=$something?, but it doesn't behavior well with XML documents. So, if your intention is to change short tags to ASP tag in a near future, ok. ASP tags does not mix XML documents. Otherwise, ASP tags is the most useless thing I've ever heard in PHP sphere. I really don't know why wasn't it dropped in PHP5. That's what I think... IMHO. []s, On 4/13/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/13/07, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, April 13, 2007 9:16 am, Tijnema ! wrote: I don't see why you are all against dropping the ASP tags. I see people using ASP PHP in one script, what would that do? If ASP runs first then there isn't a problem, but if PHP runs first, it would execute the ASP code. There are actually people running both PHP and ASP in series to generate HTML? If they are, they can turn ASP tags *OFF* in php.ini And they certainly aren't going to be distributing that setup outside their own little world... I've seen such code on the net some time ago... But should you distribute PHP code with ASP tags? That's not good either i think. So there's no use of the ASP tags, and they can only interfere with ASP. Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP6 todo list
Initializing a static class resp. default instance variable with f.e. an array is an obvious use case. Err, I'm afraid I don't understand neither your abbreviations nor what the actual use case is. Can you describe real use case - i.e. module X has functionality A and B, and to make A work with B I would use persistent zvals so that when Foo is called Bar happens. -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php