Bug #69715 [Opn->Nab]: Parser silently accepts invalid text

From: Date: Wed, 27 May 2015 21:52:43 +0000
Subject: Bug #69715 [Opn->Nab]: Parser silently accepts invalid text
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192942@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69715&edit=1 ID: 69715 Updated by: requinix@php.net Reported by: hhurford at llamazone dot com Summary: Parser silently accepts invalid text -Status: Open +Status: Not a bug Type: Bug Package: Unknown/Other Function Operating System: FreeBSD PHP Version: Irrelevant Block user comment: N Private report: N New Comment: "http:" is valid. It's a label. http://php.net/goto Previous Comments: ------------------------------------------------------------------------ [2015-05-27 21:34:37] hhurford at llamazone dot com Description: ------------ Place a url in a section of PHP code. PHP accepts it PHP gives neither an error nor a 500 response. I intended to comment out the URL, but forgot. PHP should have complained, but did not. Test script: --------------- <?php ini_set('display_errors','On'); // On the next line, any URL can be used. http://encosia.com/5-steps-toward-jquery-mastery/ ?> Expected result: ---------------- I expect a 500 fault. The URL contains "//", which comments out most of the URL. What is left is "http:" . The parser is accepting "http:" without balking. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69715&edit=1

« previous php.bugs (#192942) next »