note 108585 added to imagick.getversion
| From: | holdoffhunger at gmail dot com | Date: | Tue, 08 May 2012 23:37:13 +0000 |
| Subject: | note 108585 added to imagick.getversion | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187533@lists.php.net to get a copy of this message | ||
The getVersion function for the ImageMagick class returns an array, with two values, one linked to
the key value of 'versionNumber' and another linked to the key value of
'versionString'. The version number provides a simple integer, while the string provides
the actual x.y.z version number, the release date, and the URL for the ImageMagick site.
Today (May 8, 2012), when calling this function, the results are...
Number: 1654
String: ImageMagick 6.7.6-8 2012-05-02 Q16 http://www.imagemagick.org
Last month (around April 15, 2012), when calling this function, the results were...
Number: 1654
String: ImageMagick 6.7.6-1 2012-04-09 Q16 http://www.imagemagick.org
So, I'm not sure why the "Number" value has not changed, but the "String"
value is definitely responding to changes in time.
The code for producing these results:
<?php
// Author: holdoffhunger@gmail.com
$imagick_version = Imagick::getVersion();
$imagick_version_number = $imagick_version['versionNumber'];
$imagick_version_string = $imagick_version['versionString'];
print("Number: $imagick_version_number");
print("<br>");
print("String: $imagick_version_string");
?>
----
Server IP: 69.147.83.197
Probable Submitter: 68.9.137.178
----
Manual Page -- http://www.php.net/manual/en/imagick.getversion.php
Edit -- https://master.php.net/note/edit/108585
Del: integrated -- https://master.php.net/note/delete/108585/integrated
Del: useless -- https://master.php.net/note/delete/108585/useless
Del: bad code -- https://master.php.net/note/delete/108585/bad+code
Del: spam -- https://master.php.net/note/delete/108585/spam
Del: non-english -- https://master.php.net/note/delete/108585/non-english
Del: in docs -- https://master.php.net/note/delete/108585/in+docs
Del: other reasons-- https://master.php.net/note/delete/108585
Reject -- https://master.php.net/note/reject/108585
Search -- https://master.php.net/manage/user-notes.php