[PHP-DEV] Bug #13988 Updated: get_meta_tags function failure if title tag contains a '

2001-11-19 Thread software

ID: 13988
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows 98 first edition
PHP Version: 4.0.6
New Comment:

Sorry but when typing I forget a =.
This html and php is pasted from the source directly:

test.html.
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleQuesto e' un titolo di prova/title
META http-equiv=Content-Type content=text/html; charset=iso-8859-1
meta name=description content=Il mio nome est pippo!
meta name=author content=Andrea!
/head
body
/body
/html
end of file test.html.

pippo.php.
?php
$tags = get_meta_tags(test.html);
echo $tags['description'].br.$tags['author'];
?
end of file pippo.php.

As I said:
This example (pippo.php) fails,
because it does not display the description and author tags correctly.
If I move the line title after the metas it works.
If I remove the character ' from title it works.

The file test.html has been validated at:
http://validator.w3.org
so the html code is correct.


Previous Comments:


[2001-11-18 19:05:50] [EMAIL PROTECTED]

All your example html files are buggy:

meta name=description contentciao ciao

Note the missing '=' after content?

--Jani




[2001-11-12 05:11:15] [EMAIL PROTECTED]

Yes, it happens with 4.0.6.



[2001-11-09 09:43:31] [EMAIL PROTECTED]

Reopen if this happens with PHP 4.0.6




[2001-11-08 04:09:22] [EMAIL PROTECTED]

Example:

pippo.html
etc etc
titleIl mio nome e' pippo/title
meta name=description contentciao ciao
etc

pippo.php
$tags = get_meta_tags(pippo.html);
echo $tags['description'];

Case A) Failed
titleIl mio nome e' pippo/title
meta name=description contentciao ciao

echo $tags['description'], echos nothing

Case B) OK
meta name=description contentciao ciao
titleIl mio nome e' pippo/title

$tags['description'], echos ciao ciao


Case C) OK, I remove the character '
titleIl mio nome est pippo/title
meta name=description contentciao ciao

$tags['description'], echos ciao ciao

SUMMARY:
It seems there is a problem of get_meta_tags parsing the meta from an html file.
The problem is the ' character.
If it is contained inside a tag title before a meta then get_meta_tags fails.
If the title tag with the ' character is put after the meta, then it works.
If I delete the ' character then it works always.





Edit this bug report at http://bugs.php.net/?id=13988edit=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 #13988 Updated: get_meta_tags function failure if title tag contains a '

2001-11-19 Thread sniper

ID: 13988
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Operating System: Windows 98 first edition
PHP Version: 4.0.6
New Comment:

Can't reproduce with latest CVS.
Please reopen if this doesn't work with
soon to be released PHP 4.1.0

--Jani


Previous Comments:


[2001-11-19 05:23:50] [EMAIL PROTECTED]

Sorry but when typing I forget a =.
This html and php is pasted from the source directly:

test.html.
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleQuesto e' un titolo di prova/title
META http-equiv=Content-Type content=text/html; charset=iso-8859-1
meta name=description content=Il mio nome est pippo!
meta name=author content=Andrea!
/head
body
/body
/html
end of file test.html.

pippo.php.
?php
$tags = get_meta_tags(test.html);
echo $tags['description'].br.$tags['author'];
?
end of file pippo.php.

As I said:
This example (pippo.php) fails,
because it does not display the description and author tags correctly.
If I move the line title after the metas it works.
If I remove the character ' from title it works.

The file test.html has been validated at:
http://validator.w3.org
so the html code is correct.




[2001-11-18 19:05:50] [EMAIL PROTECTED]

All your example html files are buggy:

meta name=description contentciao ciao

Note the missing '=' after content?

--Jani




[2001-11-12 05:11:15] [EMAIL PROTECTED]

Yes, it happens with 4.0.6.



[2001-11-09 09:43:31] [EMAIL PROTECTED]

Reopen if this happens with PHP 4.0.6




[2001-11-08 04:09:22] [EMAIL PROTECTED]

Example:

pippo.html
etc etc
titleIl mio nome e' pippo/title
meta name=description contentciao ciao
etc

pippo.php
$tags = get_meta_tags(pippo.html);
echo $tags['description'];

Case A) Failed
titleIl mio nome e' pippo/title
meta name=description contentciao ciao

echo $tags['description'], echos nothing

Case B) OK
meta name=description contentciao ciao
titleIl mio nome e' pippo/title

$tags['description'], echos ciao ciao


Case C) OK, I remove the character '
titleIl mio nome est pippo/title
meta name=description contentciao ciao

$tags['description'], echos ciao ciao

SUMMARY:
It seems there is a problem of get_meta_tags parsing the meta from an html file.
The problem is the ' character.
If it is contained inside a tag title before a meta then get_meta_tags fails.
If the title tag with the ' character is put after the meta, then it works.
If I delete the ' character then it works always.





Edit this bug report at http://bugs.php.net/?id=13988edit=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 #13988 Updated: get_meta_tags function failure if title tag contains a '

2001-11-18 Thread sniper

ID: 13988
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Windows 98 first edition
PHP Version: 4.0.6
New Comment:

All your example html files are buggy:

meta name=description contentciao ciao

Note the missing '=' after content?

--Jani


Previous Comments:


[2001-11-12 05:11:15] [EMAIL PROTECTED]

Yes, it happens with 4.0.6.



[2001-11-09 09:43:31] [EMAIL PROTECTED]

Reopen if this happens with PHP 4.0.6




[2001-11-08 04:09:22] [EMAIL PROTECTED]

Example:

pippo.html
etc etc
titleIl mio nome e' pippo/title
meta name=description contentciao ciao
etc

pippo.php
$tags = get_meta_tags(pippo.html);
echo $tags['description'];

Case A) Failed
titleIl mio nome e' pippo/title
meta name=description contentciao ciao

echo $tags['description'], echos nothing

Case B) OK
meta name=description contentciao ciao
titleIl mio nome e' pippo/title

$tags['description'], echos ciao ciao


Case C) OK, I remove the character '
titleIl mio nome est pippo/title
meta name=description contentciao ciao

$tags['description'], echos ciao ciao

SUMMARY:
It seems there is a problem of get_meta_tags parsing the meta from an html file.
The problem is the ' character.
If it is contained inside a tag title before a meta then get_meta_tags fails.
If the title tag with the ' character is put after the meta, then it works.
If I delete the ' character then it works always.





Edit this bug report at http://bugs.php.net/?id=13988edit=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 #13988 Updated: get_meta_tags function failure if title tag contains a '

2001-11-12 Thread software

ID: 13988
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows 98 first edition
Old PHP Version: 4.0.4pl1
PHP Version: 4.0.6
New Comment:

Yes, it happens with 4.0.6.

Previous Comments:


[2001-11-09 09:43:31] [EMAIL PROTECTED]

Reopen if this happens with PHP 4.0.6




[2001-11-08 04:09:22] [EMAIL PROTECTED]

Example:

pippo.html
etc etc
titleIl mio nome e' pippo/title
meta name=description contentciao ciao
etc

pippo.php
$tags = get_meta_tags(pippo.html);
echo $tags['description'];

Case A) Failed
titleIl mio nome e' pippo/title
meta name=description contentciao ciao

echo $tags['description'], echos nothing

Case B) OK
meta name=description contentciao ciao
titleIl mio nome e' pippo/title

$tags['description'], echos ciao ciao


Case C) OK, I remove the character '
titleIl mio nome est pippo/title
meta name=description contentciao ciao

$tags['description'], echos ciao ciao

SUMMARY:
It seems there is a problem of get_meta_tags parsing the meta from an html file.
The problem is the ' character.
If it is contained inside a tag title before a meta then get_meta_tags fails.
If the title tag with the ' character is put after the meta, then it works.
If I delete the ' character then it works always.





Edit this bug report at http://bugs.php.net/?id=13988edit=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 #13988 Updated: get_meta_tags function failure if title tag contains a '

2001-11-09 Thread sniper

ID: 13988
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Operating System: Windows 98 first edition
PHP Version: 4.0.4pl1
New Comment:

Reopen if this happens with PHP 4.0.6


Previous Comments:


[2001-11-08 04:09:22] [EMAIL PROTECTED]

Example:

pippo.html
etc etc
titleIl mio nome e' pippo/title
meta name=description contentciao ciao
etc

pippo.php
$tags = get_meta_tags(pippo.html);
echo $tags['description'];

Case A) Failed
titleIl mio nome e' pippo/title
meta name=description contentciao ciao

echo $tags['description'], echos nothing

Case B) OK
meta name=description contentciao ciao
titleIl mio nome e' pippo/title

$tags['description'], echos ciao ciao


Case C) OK, I remove the character '
titleIl mio nome est pippo/title
meta name=description contentciao ciao

$tags['description'], echos ciao ciao

SUMMARY:
It seems there is a problem of get_meta_tags parsing the meta from an html file.
The problem is the ' character.
If it is contained inside a tag title before a meta then get_meta_tags fails.
If the title tag with the ' character is put after the meta, then it works.
If I delete the ' character then it works always.





Edit this bug report at http://bugs.php.net/?id=13988edit=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]