[fusion-commits] r2497 - sandbox/adsk/2.4jbeta2/widgets/QuickPlot
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Dec 29 04:08:40 EST 2011
Author: liuar
Date: 2011-12-29 01:08:39 -0800 (Thu, 29 Dec 2011)
New Revision: 2497
Modified:
sandbox/adsk/2.4jbeta2/widgets/QuickPlot/GeneratePicture.php
Log:
On behalf of Mars Wu
For ticket: http://trac.osgeo.org/mapguide/ticket/1887
The php function tempnam() doesn't work on IIS... The returned value is nothing.
Then fix the problem in another more straight way:
$tempImage = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "mgo" . uniqid();
DIRECTORY_SEPARATOR is a php variable which will handle the path separator for Windows and Linux
Modified: sandbox/adsk/2.4jbeta2/widgets/QuickPlot/GeneratePicture.php
===================================================================
--- sandbox/adsk/2.4jbeta2/widgets/QuickPlot/GeneratePicture.php 2011-12-23 03:12:55 UTC (rev 2496)
+++ sandbox/adsk/2.4jbeta2/widgets/QuickPlot/GeneratePicture.php 2011-12-29 09:08:39 UTC (rev 2497)
@@ -122,7 +122,7 @@
"PNG",
false);
- $tempImage = tempnam(sys_get_temp_dir(), "mgo");
+ $tempImage = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "mgo" . uniqid();
$mgReader->ToFile($tempImage);
$image = imagecreatefrompng($tempImage);
unlink($tempImage);
More information about the fusion-commits
mailing list