ID:               24089
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bartosz at webcity dot pl
-Status:           Open
+Status:           Verified
-Bug Type:         *General Issues
+Bug Type:         Zend Engine 2 problem
 Operating System: Linux
 PHP Version:      5CVS-2003-06-09 (dev)
 New Comment:

Latest CVS gives:

Parse error: parse error in /home/jani/t.php on line 25

(for the script provided in the first comment in this report)



Previous Comments:
------------------------------------------------------------------------

[2003-06-09 13:39:34] bartosz at webcity dot pl

Only notice about parse error, nothing else:

Parse error: parse error in /home/bartosz/www/foo.php on line 25

------------------------------------------------------------------------

[2003-06-09 12:47:59] neon at neon-line dot net

Oh... I propably wasn't thinking while writing my previous comment.
For me it works with php5-200306091730 and PHP4. Are you sure that you
don't have some kind of typing error etc. in you code...

------------------------------------------------------------------------

[2003-06-09 12:15:14] bartosz at webcity dot pl

So, why it works with php4, but with php5 doesn't?

------------------------------------------------------------------------

[2003-06-09 05:12:33] neon at neon-line dot net

It's not a bug.

------------------------------------------------------------------------

[2003-06-09 04:28:43] bartosz at webcity dot pl

Look at 'foobar' method in 'foobar' class.

It makes parse error:

$this -> obj = new $this -> classname;

but it works:

$classname = $this -> classname;
$this -> obj = new $classname;

in php4

$this -> obj = new $this -> classname;

works correctly.
It isn't a bug?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/24089

-- 
Edit this bug report at http://bugs.php.net/?id=24089&edit=1

Reply via email to