|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-06-22 23:03 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 16:00:02 2025 UTC |
Tested with latest snapshot on windows php test.php Parse error: syntax error, unexpected T_CLONE, expecting T_STRING or T_VARIABLE or '{' or '$' in test.php on line 4 Same probleme here.