#45331 [Bgs->Ver]: Imagick::clone with trailing space results in ParserError
| From: | pajoye@php.net | Date: | Sun, 22 Jun 2008 23:24:14 +0000 |
| Subject: | #45331 [Bgs->Ver]: Imagick::clone with trailing space results in ParserError | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-125947@lists.php.net to get a copy of this message | ||
ID: 45331
Updated by: pajoye@php.net
Reported By: j dot jeising at gmail dot com
-Status: Bogus
+Status: Verified
Bug Type: Class/Object related
Operating System: Mac OS X 10.5.3
PHP Version: 5.2.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
Oops, misread but I can't reproduce the problem with:
class a { function foo(){echo "foo\n";}} $b = new a; $b -> foo();
Previous Comments:
------------------------------------------------------------------------
[2008-06-22 23:20:06] pajoye@php.net
report bug for imagick in http://pecl.php.net/imagick
------------------------------------------------------------------------
[2008-06-22 23:03:39] j dot jeising at gmail dot com
Description:
------------
With a space between -> and Imagick::clone PHP throws a parser error.
Without the space everything is perfect.
Reproduce code:
---------------
$imagick = new Imagick ( 'path/to/a/image.jpg' );
$clone = $imagick -> clone ( ); // Spaces important!
// Code which runs:
//$clone = $imagick ->clone ( );
Expected result:
----------------
Clone of $imagick in $clone.
Actual result:
--------------
Parse error: syntax error, unexpected T_CLONE, expecting T_STRING or
T_VARIABLE or '{' or '$' in .../file.php on line 2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45331&edit=1