php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #196 parser error with incorrect eval strings
Submitted: 1998-03-25 12:39 UTC Modified: 1998-03-26 08:14 UTC
From: auke at snt dot utwente dot nl Assigned: zeev (profile)
Status: Closed Package: Reproducible Crash
PHP Version: 3.0b6 OS: linux
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: auke at snt dot utwente dot nl
New email:
PHP Version: OS:

 

 [1998-03-25 12:39 UTC] auke at snt dot utwente dot nl
<?php
  $test="echo \"this is a test\";";
  eval($test);
  $test="echo \"and \" another \" test \" it \" is \";";
  eval($test);
  echo "well?";
?>

modules: --with-mysql --with-apache
(also gd support)

I didn't change anything in the php3.ini file

This script above seems to do allright the first time, but if you
reload it often enough (usually about 5 times with my apache 1.2.5 and 1.3b3 setup)
it will say something like this:
--
this is a test
Warning: Unexpected character in input: ' in /export/home/dnd/WWW//test/eval.test.phtml
on line 4

Parse error: parse error in /export/home/dnd/WWW//test/eval.test.phtml on line 6

--
from then on the php parser is instable and sometimes crashes.
It seems that if you don't push the reload button, but just type enter after the 
url a few times, the parser will die more often...
Guess netscape sends different headers in the latter case.

good luck hunting :)
Auke van Slooten

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-26 08:14 UTC] zeev
This bug should be fixed in the RC.  Waiting for response
from the user...
Indeed it was already fixed in the RC
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC