php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17910 behaviour of //
Submitted: 2002-06-21 15:44 UTC Modified: 2002-06-21 18:31 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: tit dot petric at telemach dot net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.1 OS: linux debian
Private report: No CVE-ID: None
 [2002-06-21 15:44 UTC] tit dot petric at telemach dot net
i have noticed a distinct behaviour of // which caused to give me a script error each time i commented one specific line, not mattering where in the file i put the line itself

i went into hex view and tracked down the error and the cause of the error and i came to this sollution

// echo 'blahblah';

that is okay

// echo 'blahblah(ascii for \r)';

the \r ascii showed up just before the '; (because i was transfering files from windows where \r\n is used), and caused the script error untill i removed it (/* */ multiline comments worked fine)

so basically the // behaviour spots the first \r on the same line, and throws everything else into the script engine, causing a script error.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-21 18:31 UTC] derick@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 16:01:31 2024 UTC