# dropping asp_tags in HEAD

- Thread: https://externals.io/message/28753
- Original archive: https://news-web.php.net/php.internals/28753
- Started by Antony Dovgal on 2007-04-12T19:32:28+00:00
- Messages: 60
- Page 1 of 3: messages 1 to 25 (25 per page, add `?page=N` to the URL)
- Next page: https://externals.io/message/28753.md?page=2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #28753 — Antony Dovgal — 2007-04-12T19:32:28+00:00

URL: https://externals.io/message/28753#28753

Hello all.

If there are no objections, I'm going to drop asp_tags in HEAD tomorrow.
You can see the patch here:
http://tony2001.phpclub.net/dev/tmp/kill_asp_tags.diff

-- 
Wbr, 
Antony Dovgal

---

## #28755 — Edin Kadribasic — 2007-04-12T19:39:20+00:00

URL: https://externals.io/message/28753#28755 · In reply to: #28753

Antony Dovgal wrote:
> Hello all.
> 
> If there are no objections, I'm going to drop asp_tags in HEAD tomorrow.
> You can see the patch here:
> http://tony2001.phpclub.net/dev/tmp/kill_asp_tags.diff

Big objection from here. See my other email. Discussed and agreed
against removing tags since that creates 0% gain and much pain for some
people.

Edin

---

## #28757 — Antony Dovgal — 2007-04-12T19:54:57+00:00

URL: https://externals.io/message/28753#28757 · In reply to: #28755

> Antony Dovgal wrote:
> > […]
> 
> Big objection from here. See my other email. 

Please point me to the discussion.

> Discussed and agreed against removing tags since that creates 0% gain 
> and much pain for some people.

I'm sure using an option which is Off by default have been causing a lot of pain for 
them all these years, so it's time to fix the app and forget.

-- 
Wbr, 
Antony Dovgal

---

## #28759 — Stut — 2007-04-12T20:01:12+00:00

URL: https://externals.io/message/28753#28759 · In reply to: #28757

Antony Dovgal wrote:
> 
> > […]
> 
> Please point me to the discussion.
> 
> > […]
> 
> I'm sure using an option which is Off by default have been causing a lot 
> of pain for them all these years, so it's time to fix the app and forget.

Yeah, one setting in php.ini against any number of tags in any number of 
scripts. Now that's what I call a reasoned argument.

-Stut

---

## #28761 — Edin Kadribasic — 2007-04-12T20:03:23+00:00

URL: https://externals.io/message/28753#28761 · In reply to: #28757

Antony Dovgal wrote:
> 
> > […]
> 
> Please point me to the discussion.
> 
> > […]
> 
> I'm sure using an option which is Off by default have been causing a lot
> of pain for them all these years, so it's time to fix the app and forget.

See the discussion around this post:

http://www.zend.com/lists/php-dev/200511/msg00938.html

Removing this tags causes pain to some (very small number of) people but
it gives nothing to the rest.

Edin

---

## #28760 — Ilia Alshanetsky — 2007-04-12T20:04:54+00:00

URL: https://externals.io/message/28753#28760 · In reply to: #28753

IMO there is little to gain by dropping support for <%, it only risks  
breaking scripts relying on out.




> Hello all.
>
> If there are no objections, I'm going to drop asp_tags in HEAD  
> tomorrow.
> You can see the patch here:
> http://tony2001.phpclub.net/dev/tmp/kill_asp_tags.diff
>
> -- 
> Wbr, Antony Dovgal
>
> -- 
> 
> 
>

Ilia Alshanetsky

---

## #28762 — Antony Dovgal — 2007-04-12T20:12:10+00:00

URL: https://externals.io/message/28753#28762 · In reply to: #28759

> > […]
> 
> Yeah, one setting in php.ini against any number of tags in any number of 
> scripts. Now that's what I call a reasoned argument.

Surely we must to keep a setting just because two people in the world use it.
I'm afraid their apps won't run on PHP6 anyway because of numerous major changes 
(already done and still planned), so one more cleanup won't hurt anyone.

-- 
Wbr, 
Antony Dovgal

---

## #28763 — Steph Fox — 2007-04-12T20:23:06+00:00

URL: https://externals.io/message/28753#28763 · In reply to: #28762

> Surely we must to keep a setting just because two people in the world use 
> it.
> I'm afraid their apps won't run on PHP6 anyway because of numerous major 
> changes (already done and still planned), so one more cleanup won't hurt 
> anyone.

I'm going to come back from the dead to argue with you Tony, even though I 
hate that tag already.

http://devzone.zend.com/node/view/id/1465#Heading2

- the last time this came up.

http://devzone.zend.com/node/view/id/337#Heading1

- the first time this came up. Note that both Rasmus and Zeev were against 
making the change in PHP 5 back then. Did something change?

- Steph


>
> -- 
> Wbr, Antony Dovgal

---

## #28766 — Richard Lynch — 2007-04-12T22:46:10+00:00

URL: https://externals.io/message/28753#28766 · In reply to: #28762

> Surely we must to keep a setting just because two people in the world
> use it.
> I'm afraid their apps won't run on PHP6 anyway because of numerous
> major changes
> (already done and still planned), so one more cleanup won't hurt
> anyone.

What is the benefit to dropping these things?

I've never quite understood the impetus behind losing short tags and
asp tags...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

---

## #28768 — Robert Deaton — 2007-04-12T23:00:53+00:00

URL: https://externals.io/message/28753#28768 · In reply to: #28766

> 
> > […]
>
> What is the benefit to dropping these things?
>
> I've never quite understood the impetus behind losing short tags and
> asp tags...

I understand the need to remove short tags. Here's the reason: <?xml.

As for ASP tags, I don't really know.

-- 
--Robert Deaton

---

## #28771 — Andi Gutmans — 2007-04-13T04:05:50+00:00

URL: https://externals.io/message/28753#28771 · In reply to: #28753

Not that I think many people use this but I think there's absolutely
nothing to gain from dropping this tag (except for purity). So I really
so no good reason to do it.

> -----Original Message-----
> From: Antony Dovgal [mailto:antony@zend.com] 
> Sent: Thursday, April 12, 2007 12:32 PM
> To: php-dev
> Subject: [PHP-DEV] dropping asp_tags in HEAD
> 
> Hello all.
> 
> If there are no objections, I'm going to drop asp_tags in 
> HEAD tomorrow.
> You can see the patch here:
> http://tony2001.phpclub.net/dev/tmp/kill_asp_tags.diff
> 
> --
> Wbr,
> Antony Dovgal
> 
> --
>  To 
> unsubscribe, visit: http://www.php.net/unsub.php

---

## #28776 — Stefan Walk — 2007-04-13T07:48:01+00:00

URL: https://externals.io/message/28753#28776 · In reply to: #28762

> Surely we must to keep a setting just because two people in the world use it.
> I'm afraid their apps won't run on PHP6 anyway because of numerous major changes
> (already done and still planned), so one more cleanup won't hurt anyone.

This isn't cleanup. This is dropping a feature without a similar
alternative. Short tags are problematic because of xhtml templates.
ASP tags collide with no (x)html markup, and they are short and easy
to type/read in templates.

Regards,
Stefan

---

## #28777 — Tomas Kuliavas — 2007-04-13T08:01:15+00:00

URL: https://externals.io/message/28753#28777 · In reply to: #28776

> > […]
>
> This isn't cleanup. This is dropping a feature without a similar
> alternative. Short tags are problematic because of xhtml templates.
> ASP tags collide with no (x)html markup, and they are short and easy
> to type/read in templates.

ASP tags do collide with some html markup.

<td width=10%>

Boom.

I know. Value should be quoted. 'asp_tags = on' is yet another way to
break php scripts. Some developers don't expect it and make typos in html
attributes.

-- 
Tomas

---

## #28778 — Matt Wilmas — 2007-04-13T08:36:55+00:00

URL: https://externals.io/message/28753#28778 · In reply to: #28777

Hi Tomas,

----- Original Message -----
From: "Tomas Kuliavas"
Sent: Friday, April 13, 2007

> ASP tags do collide with some html markup.
>
> <td width=10%>
>
> Boom.

That's not a problem. :-)  If you're in PHP, that would be a string; if in
HTML, %> isn't an opening tag:

php -d asp_tags=On -r "echo '<td width=10%>'%>, <td width=10%>"

Result: <td width=10%>, <td width=10%>

> I know. Value should be quoted. 'asp_tags = on' is yet another way to
> break php scripts. Some developers don't expect it and make typos in html
> attributes.
>
> -- 
> Tomas

Matt

---

## #28779 — Tomas Kuliavas — 2007-04-13T09:07:15+00:00

URL: https://externals.io/message/28753#28779 · In reply to: #28778

> Hi Tomas,
>
> ----- Original Message -----
> From: "Tomas Kuliavas"
> Sent: Friday, April 13, 2007
>
> > […]
>
> That's not a problem. :-)  If you're in PHP, that would be a string; if
in
> HTML, %> isn't an opening tag:
>
> php -d asp_tags=On -r "echo '<td width=10%>'%>, <td width=10%>"
>
> Result: <td width=10%>, <td width=10%>
>

I do remember that it broke things in some php version. Reported about
SquirrelMail issues on asp_tags=on setup in 2001. Maybe it was in php
4.1.2. Can't reproduce it right now.


-- 
Tomas

---

## #28780 — Stefan Walk — 2007-04-13T09:13:02+00:00

URL: https://externals.io/message/28753#28780 · In reply to: #28777

> > […]
>
> ASP tags do collide with some html markup.
>
> <td width=10%>
>
> Boom.
>
> I know. Value should be quoted. 'asp_tags = on' is yet another way to
> break php scripts. Some developers don't expect it and make typos in html
> attributes.

Not "should be", it is a must. Quoting HTML 4.01: "In certain cases,
authors may specify the value of an attribute without any quotation
marks. The attribute value may only contain letters (a-z and A-Z),
digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46),
underscores (ASCII decimal 95), and colons (ASCII decimal 58)."

So, your example is not HTML, so it doesn't show any collision.

---

## #28781 — Ron Korving — 2007-04-13T09:21:37+00:00

URL: https://externals.io/message/28753#28781 · In reply to: #28780

""Stefan Walk"" <stefan.walk@gmail.com> schreef in bericht 
news:4858f9d90704130213h4b440ac4w7518943b10627439@mail.gmail.com...
> 
> > […]
>
> Not "should be", it is a must. Quoting HTML 4.01: "In certain cases,
> authors may specify the value of an attribute without any quotation
> marks. The attribute value may only contain letters (a-z and A-Z),
> digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46),
> underscores (ASCII decimal 95), and colons (ASCII decimal 58)."
>
> So, your example is not HTML, so it doesn't show any collision.

Actually it does, since browsers aren't as strict as the standards they 
"implement". The only real reason I can think of to remove ASP tags, would 
be to unclutter php.ini. As has often been mentioned here in internals, 
there is such a thing as "too much features". Apparently that goes for 
things like OO and typehinting, and as far as I'm concerned it also goes for 
php.ini (which is also why magic_quotes are being removed altogether 
right?). If that reason (and the tinyest speed improvement in PHP when it 
searches for an open tag) is not enough reason, then I guess it's better 
kept in.

Just my ?0.02

- Ron

---

## #28782 — Stefan Walk — 2007-04-13T09:41:25+00:00

URL: https://externals.io/message/28753#28782 · In reply to: #28781

> Actually it does, since browsers aren't as strict as the standards they
> "implement".

Well, then ?> collides also. So the suggestion is to drop everything
but <script language="php">? ;)

Aside from that, Matt already mentioned that it doesn't really break.

Regards,
Stefan

---

## #28783 — Uwe Schindler — 2007-04-13T10:13:33+00:00

URL: https://externals.io/message/28753#28783 · In reply to: #28782

> Well, then ?> collides also. So the suggestion is to drop everything
> but <script language="php">? ;)

To be really compliant this should be <script type="text/php"> or some other
content-type :)

Uwe

---

## #28785 — Chad Daelhousen — 2007-04-13T12:15:05+00:00

URL: https://externals.io/message/28753#28785 · In reply to: #28781

Ron Korving wrote:
> (which is also why magic_quotes are being removed altogether 
> right?).

No, magic_quotes should be removed because they're dumb. The first thing 
anyone does when writing portable PHP code is to filter all their input 
through `stripslashes()` if magic_quotes is on, and then what has anyone 
gained?

-- 
Chad Daelhousen
I've been programming for about 15 years, but it's only in the last
couple that I've come to a real understanding of it all.

---

## #28789 — Tijnema ! — 2007-04-13T14:16:41+00:00

URL: https://externals.io/message/28753#28789 · In reply to: #28785

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.

Tijnema

---

## #28803 — Richard Lynch — 2007-04-13T21:40:26+00:00

URL: https://externals.io/message/28753#28803 · In reply to: #28768

> I understand the need to remove short tags. Here's the reason: <?xml.

That's it?

I mean, we've co-existed with <?xml just fine for some time now,
allowing users to choose short_tags or XML, but not both, by setting
php.ini up the way they want...

Doesn't seem like reason enough to me to yank it.
[shrug]

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

---

## #28804 — Richard Lynch — 2007-04-13T21:44:57+00:00

URL: https://externals.io/message/28753#28804 · In reply to: #28789

> 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...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

---

## #28805 — Tijnema ! — 2007-04-13T21:54:13+00:00

URL: https://externals.io/message/28753#28805 · In reply to: #28804

> 
> > […]
>
> 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

---

## #28806 — Guilherme Blanco — 2007-04-14T00:21:36+00:00

URL: https://externals.io/message/28753#28806 · In reply to: #28805

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,


> 
> > […]
>
> 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
>
> > […]
>
> --
> 
> 
>
>


-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: guilhermeblanco@hotmail.com
URL: http://blog.bisna.com
São Carlos - SP/Brazil

---

Next page: https://externals.io/message/28753.md?page=2
