php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4174 Bug when using ' as a value in a variable
Submitted: 2000-04-18 06:26 UTC Modified: 2002-09-30 18:47 UTC
From: shr at dmi dot dk Assigned:
Status: Not a bug Package: Reproducible Crash
PHP Version: 3.0.16 OS: UNIX
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shr at dmi dot dk
New email:
PHP Version: OS:

 

 [2000-04-18 06:26 UTC] shr at dmi dot dk
Earlier I've reported a bug on using the char ' as a value in a variable, now tested it on the php version 4.0b3, the problem persist to exist.

I've tested with this little program:

<FORM ACTION="test.php3" method="get">

<?php
if ($bugger)
        echo "<INPUT type=\"hidden\" name=\"bugger\" value=\"$bugger\">\n";
	else      
	echo "<INPUT type=\"hidden\" name=\"bugger\" value=\"'\">\n";
?>

<INPUT type="submit"  value=" ged "></FORM>

<?php
	echo "Bugger=$bugger kode=".rawurlencode("$bugger");
?>

Just make a file named test.php3 with code above and run it. It should show the
problem i detail.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-30 18:47 UTC] hholzgra@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.

check your magic_cookie settings in php.ini
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 16:01:36 2025 UTC