From: Pierre Joye Date: Mon, 4 Mar 2013 13:14:09 +0000 (+0100) Subject: - fix path X-Git-Tag: php-5.5.0alpha6~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0404c38615b54f6ea58ebd16f104da03f1202324;p=php - fix path --- diff --git a/ext/gd/tests/imagecrop_auto.phpt b/ext/gd/tests/imagecrop_auto.phpt index 1860e39c44..c2b5177fbf 100644 --- a/ext/gd/tests/imagecrop_auto.phpt +++ b/ext/gd/tests/imagecrop_auto.phpt @@ -52,7 +52,7 @@ var_dump(imagesx($im_crop)); var_dump(imagesy($im_crop)); echo "IMG_CROP_THRESHOLD\n"; -$im = imagecreatefrompng("logo_noise.png"); +$im = imagecreatefrompng(__DIR__ . "/logo_noise.png"); $im_crop = imagecropauto($im, IMG_CROP_THRESHOLD, 0.1, 0x0); imagepng($im_crop, __DIR__ . "/crop_threshold.png"); var_dump(imagesx($im_crop)); @@ -79,4 +79,4 @@ int(11) int(11) IMG_CROP_THRESHOLD int(240) -int(134) \ No newline at end of file +int(134)