Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.9.0

Bug #10100 Wrong parsing of possible attributes in strings.
Submitted: 2007-02-14 16:44 UTC
From: simon at ruderich dot com Assigned: farell
Status: Closed Package: PHP_CompatInfo (version 1.4.1)
PHP Version: 4.3.11 OS: OS X 10.4
Roadmaps: 1.4.3, 1.4.2    
Subscription  


 [2007-02-14 16:44 UTC] simon at ruderich dot com (Simon Ruderich)
Description: ------------ Hi, I tried to test this simple file with PHP_CompatInfo. But it recognizes the "public" in this string not correct and interprets it as public attribute of php 5. This bugs also occurs with private/protected. Could you please look into this. Thanks, Simon Test script: --------------- <?php class Test { function test() { $test = "public$link"; } } ?> The $test = is not necessary to reproduce the bug, this works also: <?php class Test { function test() { "public$link"; } } ?> Expected result: ---------------- Version 3.0.0 Constants/Tokens: none Actual result: -------------- Version 5.0.0 Constants/Tokens: public

Comments

 [2007-03-20 20:42 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-03-20 20:51 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-04-02 12:12 UTC] simon at ruderich dot com
Thanks for your fix. It worked for the test script I provided, but I found another case where the bug still occurs. It still happens with this script, could you please look into it. <?php function test() { $result = "data/public/$link"; } ?> Also with this one: <?php function test() { "data/public/$link"; } ?> Thanks for your support, Simon
 [2007-04-02 21:30 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!