[PHP-DEV] Bug #12042: $ can't be escaped when using ereg function

2001-07-11 Thread teocl

From: [EMAIL PROTECTED]
Operating system: LINUX
PHP version:  4.0.6
PHP Bug Type: *Regular Expressions
Bug description:  $ can't be escaped when using ereg function

Please see the codes below:
?

$arrfile = '?include($DOCUMENT_ROOT/TEMPLATES/TOP-BANNER.HTM);?';

if(eregi(\?include\(\\$DOCUMENT_ROOT/TEMPLATES/TOP-BANNER\.HTM\\);\?,$arrfile))
print good\n;
else
print bad\n;

?

The result will return bad because the eregi can't find the expression in
the $arrfile. If I removed the $, it will return good. I guess $ can't
be escaped inside the eregi function. Please help.


-- 
Edit bug report at: http://bugs.php.net/?id=12042edit=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 #11796 Updated: get_meta_tags doesn't work when the title tag consists of single quote

2001-07-03 Thread teocl

ID: 11796
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: Unknown/Other Function
Operating system: Linux
PHP Version: 4.0.5
Description: get_meta_tags doesn't work when the title tag consists of single quote

Hi, have another question.
Is this bug fixed in 4.0.6?
If so, I would rather upgrade my php to 4.0.6.

Thanks.




Previous Comments:
---

[2001-07-03 03:03:40] [EMAIL PROTECTED]

nm, wrong entry

---

[2001-07-03 03:01:34] [EMAIL PROTECTED]

From the ChangeLog:

2001-03-06  Sean Bright  [EMAIL PROTECTED]

* ext/standard/file.c: Typo.

* ext/standard/file.c:
get_meta_tags now allows attributes that are not quoted as well as those
that are.  It follows the HTML 4.01 specification for attribute values
outlined here - http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2

You could have checked this yourself BTW.

Derick

---

[2001-07-03 02:12:28] [EMAIL PROTECTED]

Hi, have another question.
Is this bug fixed in 4.0.6?
If so, I would rather upgrade my php to 4.0.6.

Thanks.




---

[2001-07-02 04:12:45] [EMAIL PROTECTED]

Either grab a snapshot form snaps.php.net or follow the instructions on getting the 
CVS version on: www.php.net/anoncvs.php

Derick

---

[2001-07-02 04:11:02] [EMAIL PROTECTED]

http://www.php.net/anoncvs.php


---

The remainder of the comments for this report are too long.
To view the rest of the comments, please
view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=11796


-- 
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 #11796 Updated: get_meta_tags doesn't work when the title tag consists of single quote

2001-07-02 Thread teocl

ID: 11796
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: Unknown/Other Function
Operating system: Linux
PHP Version: 4.0.5
Description: get_meta_tags doesn't work when the title tag consists of single quote

where can I get the latest CVS? Thanks.

Previous Comments:
---

[2001-06-30 16:04:45] [EMAIL PROTECTED]

Fixed in latest CVS.  Thank you for your report.

---

[2001-06-30 11:35:21] [EMAIL PROTECTED]

I'll take this one.

---

[2001-06-29 13:27:52] [EMAIL PROTECTED]

Reproduced with latest CVS.


---

[2001-06-29 03:18:17] [EMAIL PROTECTED]

get_meta_tags will get nothing when this statics file is used.(please see the code 
down there)
Only when the single quote inside the title tag removed, then the meta will be 
retrieved. I have tried to use this code inside PHP Version 4.0.4, and it works. 
Does anyone has any clue about it?


html
head
TITLESanmina acquires Alcatel's manufacturing operations in Texas/TITLE
META NAME=VERSION CONTENT=2.1/
META NAME=ISSUE CONTENT=121345/
META NAME=STARTDATE CONTENT=27-JUN-2001/
/head
/html

Thanks.


---


Full Bug description available at: http://bugs.php.net/?id=11796


-- 
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 #11796 Updated: get_meta_tags doesn't work when the title tag consists of single quote

2001-07-02 Thread teocl

ID: 11796
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: Unknown/Other Function
Operating system: Linux
PHP Version: 4.0.5
Description: get_meta_tags doesn't work when the title tag consists of single quote

Hi, have another question.
Is this bug fixed in 4.0.6?
If so, I would rather upgrade my php to 4.0.6.

Thanks.




Previous Comments:
---

[2001-07-02 04:12:45] [EMAIL PROTECTED]

Either grab a snapshot form snaps.php.net or follow the instructions on getting the 
CVS version on: www.php.net/anoncvs.php

Derick

---

[2001-07-02 04:11:02] [EMAIL PROTECTED]

http://www.php.net/anoncvs.php


---

[2001-07-02 04:05:45] [EMAIL PROTECTED]

where can I get the latest CVS? Thanks.

---

[2001-06-30 16:04:45] [EMAIL PROTECTED]

Fixed in latest CVS.  Thank you for your report.

---

[2001-06-30 11:35:21] [EMAIL PROTECTED]

I'll take this one.

---

The remainder of the comments for this report are too long.
To view the rest of the comments, please
view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=11796


-- 
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 #11794: get_meta_tags doesn'

2001-06-29 Thread teocl

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.5
PHP Bug Type: Unknown/Other Function
Bug description:  get_meta_tags doesn'




-- 
Edit Bug report at: http://bugs.php.net/?id=11794edit=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 #11795: get_meta_tags doesn'

2001-06-29 Thread teocl

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.5
PHP Bug Type: Unknown/Other Function
Bug description:  get_meta_tags doesn'




-- 
Edit Bug report at: http://bugs.php.net/?id=11795edit=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 #11796: get_meta_tags doesn't work when the title tag consists of single quote

2001-06-29 Thread teocl

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.5
PHP Bug Type: Unknown/Other Function
Bug description:  get_meta_tags doesn't work when the title tag consists of single 
quote

get_meta_tags will get nothing when this statics file is used.(please see the code 
down there)
Only when the single quote inside the title tag removed, then the meta will be 
retrieved. I have tried to use this code inside PHP Version 4.0.4, and it works. 
Does anyone has any clue about it?


html
head
TITLESanmina acquires Alcatel's manufacturing operations in Texas/TITLE
META NAME=VERSION CONTENT=2.1/
META NAME=ISSUE CONTENT=121345/
META NAME=STARTDATE CONTENT=27-JUN-2001/
/head
/html

Thanks.



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