Skip to content

Instantly share code, notes, and snippets.

@valugi
Created March 7, 2016 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valugi/3dbc0dbf38e3d2dcc02d to your computer and use it in GitHub Desktop.
Save valugi/3dbc0dbf38e3d2dcc02d to your computer and use it in GitHub Desktop.
`phpThumb() v1.7.14-201601231457
http://phpthumb.sourceforge.net
phpThumb() version = 1.7.14-201601231457
phpversion() = 5.6.12
PHP_OS = WINNT
$_SERVER[SERVER_SOFTWARE] = Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.6.12
FILE = D:\xampp\htdocs\phpThumb-master\phpthumb.class.php
realpath(.) = D:\xampp\htdocs\phpThumb-master
$_SERVER[PHP_SELF] = /phpThumb-master/phpThumb.php
$_SERVER[HOST_NAME] =
$_SERVER[HTTP_REFERER] = http://localhost/phpThumb-master/demo/phpThumb.demo.demo.php
$_SERVER[QUERY_STRING] = src=images%2Fdisk.jpg&w=300&hash=18ccf3eadf4ad66171f880caf4ead6df
$_SERVER[PATH_INFO] =
$_SERVER[DOCUMENT_ROOT] = D:/xampp/htdocs
getenv(DOCUMENT_ROOT) = D:/xampp/htdocs
get_magic_quotes_gpc() = FALSE
get_magic_quotes_runtime() = FALSE
error_reporting() = integer 32767
ini_get(error_reporting) = string(1) "0"
ini_get(display_errors) = string(1) "1"
ini_get(allow_url_fopen) = string(1) "1"
ini_get(disable_functions) = string(0) ""
get_cfg_var(disable_functions) = string(0) ""
ini_get(safe_mode) = FALSE
ini_get(open_basedir) = string(0) ""
ini_get(max_execution_time) = string(2) "60"
ini_get(memory_limit) = string(4) "800M"
get_cfg_var(memory_limit) = string(4) "800M"
memory_get_usage() = integer 1848008
$this->config_prefer_imagemagick = TRUE
$this->config_imagemagick_path = string(26) "C:/ImageMagick/convert.exe"
$this->ImageMagickWhichConvert() =
[actual ImageMagick path used] = string(26) "C:/ImageMagick/convert.exe"
file_exists([actual ImageMagick path used]) = FALSE
ImageMagickVersion(false) =
ImageMagickVersion(true) =
$this->config_cache_directory = string(38) "D:\xampp\htdocs\phpThumb-master/cache/"
$this->config_cache_directory_depth = integer 2
$this->config_cache_disable_warning = FALSE
$this->config_cache_maxage = integer 2592000
$this->config_cache_maxsize = integer 10485760
$this->config_cache_maxfiles = integer 200
$this->config_cache_force_passthru = TRUE
$this->cache_filename = string(160) "D:\xampp\htdocs\phpThumb-master/cache/\1\19\phpThumb_cache_localhost__src19b87fbf65da1b54448c2b667d58e991_parf3e2de904857fa573b11648f988e0f6a_dat1454542486.jpeg"
is_readable($this->config_cache_directory) = TRUE
is_writable($this->config_cache_directory) = TRUE
is_readable($this->cache_filename) = TRUE
is_writable($this->cache_filename) = TRUE
$this->config_document_root = string(15) "D:\xampp\htdocs"
$this->config_temp_directory = string(38) "D:\xampp\htdocs\phpThumb-master/cache/"
$this->config_output_format = string(4) "jpeg"
$this->config_output_maxwidth = integer 0
$this->config_output_maxheight = integer 0
$this->config_error_message_image_default = string(0) ""
$this->config_error_bgcolor = string(6) "CCCCFF"
$this->config_error_textcolor = string(6) "FF0000"
$this->config_error_fontsize = integer 1
$this->config_error_die_on_error = TRUE
$this->config_error_silent_die_on_error = FALSE
$this->config_error_die_on_source_failure = TRUE
$this->config_nohotlink_enabled = TRUE
$this->config_nohotlink_valid_domains = array(1) { [0]=> string(9) "localhost" }
$this->config_nohotlink_erase_image = TRUE
$this->config_nohotlink_text_message = string(38) "Off-server thumbnailing is not allowed"
$this->config_nooffsitelink_enabled = TRUE
$this->config_nooffsitelink_valid_domains = array(1) { [0]=> string(9) "localhost" }
$this->config_nooffsitelink_require_refer = FALSE
$this->config_nooffsitelink_erase_image = FALSE
$this->config_nooffsitelink_text_message = string(26) "Image taken from localhost"
$this->config_high_security_enabled = TRUE
$this->config_allow_src_above_docroot = FALSE
$this->config_allow_src_above_phpthumb = TRUE
$this->config_max_source_pixels = float 139810133
$this->config_use_exif_thumbnail_for_speed = FALSE
$this->config_border_hexcolor = string(6) "000000"
$this->config_background_hexcolor = string(6) "FFFFFF"
$this->config_ttf_directory = string(37) "D:\xampp\htdocs\phpThumb-master/fonts"
$this->config_disable_pathinfo_parsing = TRUE
$this->config_disable_imagecopyresampled = FALSE
$this->phpThumbDebug = integer 9
$this->thumbnailQuality = integer 75
$this->thumbnailFormat = string(4) "jpeg"
$this->gdimg_output = resource
$this->gdimg_source = unknown type
$this->sourceFilename = string(47) "D:/xampp/htdocs/phpThumb-master/images/disk.jpg"
$this->source_width = integer 1252
$this->source_height = integer 1159
$this->thumbnailCropX = integer 0
$this->thumbnailCropY = integer 0
$this->thumbnailCropW = integer 1252
$this->thumbnailCropH = integer 1159
$this->exif_thumbnail_width = string(0) ""
$this->exif_thumbnail_height = string(0) ""
$this->exif_thumbnail_type = string(0) ""
$this->thumbnail_width = float 300
$this->thumbnail_height = float 277
$this->thumbnail_image_width = string(3) "300"
$this->thumbnail_image_height = float 277.71565495208
strlen($this->rawImageData) = 0
strlen($this->exif_thumbnail_data) = 0
$this->src = string(47) "D:/xampp/htdocs/phpThumb-master/images/disk.jpg"
$this->new = NULL
$this->w = string(3) "300"
$this->h = FALSE
$this->f = string(0) ""
$this->q = integer 75
$this->sx = NULL
$this->sy = NULL
$this->sw = NULL
$this->sh = NULL
$this->far = NULL
$this->bg = NULL
$this->bc = NULL
$this->file = NULL
$this->goto = NULL
$this->err = NULL
$this->xto = NULL
$this->ra = NULL
$this->ar = NULL
$this->aoe = NULL
$this->iar = NULL
$this->maxb = NULL
builtin_function_exists(exif_thumbnail) = TRUE
builtin_function_exists(gd_info) = TRUE
builtin_function_exists(image_type_to_mime_type) = TRUE
builtin_function_exists(GetImageSize) = TRUE
builtin_function_exists(ImageCopyResampled) = TRUE
builtin_function_exists(ImageCopyResized) = TRUE
builtin_function_exists(ImageCreate) = TRUE
builtin_function_exists(ImageCreateFromString) = TRUE
builtin_function_exists(ImageCreateTrueColor) = TRUE
builtin_function_exists(ImageIsTrueColor) = TRUE
builtin_function_exists(ImageRotate) = TRUE
builtin_function_exists(ImageTypes) = TRUE
builtin_function_exists(version_compare) = TRUE
builtin_function_exists(ImageCreateFromGIF) = TRUE
builtin_function_exists(ImageCreateFromJPEG) = TRUE
builtin_function_exists(ImageCreateFromPNG) = TRUE
builtin_function_exists(ImageCreateFromWBMP) = TRUE
builtin_function_exists(ImageCreateFromXBM) = TRUE
builtin_function_exists(ImageCreateFromXPM) = TRUE
builtin_function_exists(ImageCreateFromString) = TRUE
builtin_function_exists(ImageCreateFromGD) = TRUE
builtin_function_exists(ImageCreateFromGD2) = TRUE
builtin_function_exists(ImageCreateFromGD2Part) = TRUE
builtin_function_exists(ImageJPEG) = TRUE
builtin_function_exists(ImageGIF) = TRUE
builtin_function_exists(ImagePNG) = TRUE
builtin_function_exists(ImageWBMP) = TRUE
gd_info.GD Version = string(26) "bundled (2.1.0 compatible)"
gd_info.FreeType Support = TRUE
gd_info.FreeType Linkage = string(13) "with freetype"
gd_info.T1Lib Support = FALSE
gd_info.GIF Read Support = TRUE
gd_info.GIF Create Support = TRUE
gd_info.JPEG Support = TRUE
gd_info.PNG Support = TRUE
gd_info.WBMP Support = TRUE
gd_info.XPM Support = TRUE
gd_info.XBM Support = TRUE
gd_info.WebP Support = TRUE
gd_info.JIS-mapped Japanese Font Support = FALSE
exif_info.EXIF Support = string(7) "enabled"
exif_info.EXIF Version = string(51) "1.4 $Id: 5504545b9be3379c5244b371d825eb64659eb5f5 $"
exif_info.Supported EXIF Version = string(4) "0220"
exif_info.Supported filetypes = string(9) "JPEG,TIFF"
ApacheLookupURIarray() -- FAILED
$_GET[src] = string(15) "images/disk.jpg"
$_GET[w] = string(3) "300"
$_GET[hash] = string(32) "18ccf3eadf4ad66171f880caf4ead6df"
$_GET[phpThumbDebug] = integer 9
$this->debugmessages:
phpThumb() v1.7.14-201601231457 in file "phpthumb.class.php" on line 227
setParameter(config_document_root, string(15) "D:\xampp\htdocs") in file "phpThumb.php" on line 145
setParameter(config_disable_debug, FALSE) in file "phpThumb.php" on line 145
setParameter(config_high_security_enabled, TRUE) in file "phpThumb.php" on line 145
setParameter(config_high_security_url_separator, string(1) "&") in file "phpThumb.php" on line 145
setParameter(config_allow_src_above_docroot, FALSE) in file "phpThumb.php" on line 145
setParameter(config_allow_src_above_phpthumb, TRUE) in file "phpThumb.php" on line 145
setParameter(config_auto_allow_symlinks, TRUE) in file "phpThumb.php" on line 145
setParameter(config_additional_allowed_dirs, array(0) { } ) in file "phpThumb.php" on line 145
setParameter(config_cache_directory, string(38) "D:\xampp\htdocs\phpThumb-master/cache/") in file "phpThumb.php" on line 145
setParameter(config_cache_disable_warning, FALSE) in file "phpThumb.php" on line 145
setParameter(config_cache_directory_depth, integer 2) in file "phpThumb.php" on line 145
setParameter(config_cache_maxage, integer 2592000) in file "phpThumb.php" on line 145
setParameter(config_cache_maxsize, integer 10485760) in file "phpThumb.php" on line 145
setParameter(config_cache_maxfiles, integer 200) in file "phpThumb.php" on line 145
setParameter(config_cache_source_enabled, FALSE) in file "phpThumb.php" on line 145
setParameter(config_cache_source_directory, string(45) "D:\xampp\htdocs\phpThumb-master/cache/source/") in file "phpThumb.php" on line 145
setParameter(config_cache_source_filemtime_ignore_local, FALSE) in file "phpThumb.php" on line 145
setParameter(config_cache_source_filemtime_ignore_remote, TRUE) in file "phpThumb.php" on line 145
setParameter(config_cache_default_only_suffix, string(0) "") in file "phpThumb.php" on line 145
setParameter(config_cache_prefix, string(25) "phpThumb_cache_localhost_") in file "phpThumb.php" on line 145
setParameter(config_cache_force_passthru, TRUE) in file "phpThumb.php" on line 145
setParameter(config_temp_directory, string(38) "D:\xampp\htdocs\phpThumb-master/cache/") in file "phpThumb.php" on line 145
setParameter(config_prefer_imagemagick, TRUE) in file "phpThumb.php" on line 145
setParameter(config_imagemagick_use_thumbnail, TRUE) in file "phpThumb.php" on line 145
setParameter(config_imagemagick_path, string(26) "C:/ImageMagick/convert.exe") in file "phpThumb.php" on line 145
setParameter(config_max_source_pixels, float 139810133) in file "phpThumb.php" on line 145
setParameter(config_output_format, string(4) "jpeg") in file "phpThumb.php" on line 145
setParameter(config_output_maxwidth, integer 0) in file "phpThumb.php" on line 145
setParameter(config_output_maxheight, integer 0) in file "phpThumb.php" on line 145
setParameter(config_output_interlace, TRUE) in file "phpThumb.php" on line 145
setParameter(config_error_image_width, integer 400) in file "phpThumb.php" on line 145
setParameter(config_error_image_height, integer 100) in file "phpThumb.php" on line 145
setParameter(config_error_message_image_default, string(0) "") in file "phpThumb.php" on line 145
setParameter(config_error_bgcolor, string(6) "CCCCFF") in file "phpThumb.php" on line 145
setParameter(config_error_textcolor, string(6) "FF0000") in file "phpThumb.php" on line 145
setParameter(config_error_fontsize, integer 1) in file "phpThumb.php" on line 145
setParameter(config_error_die_on_error, TRUE) in file "phpThumb.php" on line 145
setParameter(config_error_silent_die_on_error, FALSE) in file "phpThumb.php" on line 145
setParameter(config_error_die_on_source_failure, TRUE) in file "phpThumb.php" on line 145
setParameter(config_nohotlink_enabled, TRUE) in file "phpThumb.php" on line 145
setParameter(config_nohotlink_valid_domains, array(1) { [0]=> string(9) "localhost" } ) in file "phpThumb.php" on line 145
setParameter(config_nohotlink_erase_image, TRUE) in file "phpThumb.php" on line 145
setParameter(config_nohotlink_text_message, string(38) "Off-server thumbnailing is not allowed") in file "phpThumb.php" on line 145
setParameter(config_nooffsitelink_enabled, TRUE) in file "phpThumb.php" on line 145
setParameter(config_nooffsitelink_valid_domains, array(1) { [0]=> string(9) "localhost" } ) in file "phpThumb.php" on line 145
setParameter(config_nooffsitelink_require_refer, FALSE) in file "phpThumb.php" on line 145
setParameter(config_nooffsitelink_erase_image, FALSE) in file "phpThumb.php" on line 145
setParameter(config_nooffsitelink_watermark_src, string(26) "/demo/images/watermark.png") in file "phpThumb.php" on line 145
setParameter(config_nooffsitelink_text_message, string(26) "Image taken from localhost") in file "phpThumb.php" on line 145
setParameter(config_border_hexcolor, string(6) "000000") in file "phpThumb.php" on line 145
setParameter(config_background_hexcolor, string(6) "FFFFFF") in file "phpThumb.php" on line 145
setParameter(config_ttf_directory, string(37) "D:\xampp\htdocs\phpThumb-master/fonts") in file "phpThumb.php" on line 145
setParameter(config_http_user_agent, string(109) "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36") in file "phpThumb.php" on line 145
setParameter(config_disable_pathinfo_parsing, TRUE) in file "phpThumb.php" on line 145
setParameter(config_disable_imagecopyresampled, FALSE) in file "phpThumb.php" on line 145
setParameter(config_disable_onlycreateable_passthru, TRUE) in file "phpThumb.php" on line 145
setParameter(config_disable_realpath, FALSE) in file "phpThumb.php" on line 145
setParameter(config_http_fopen_timeout, integer 10) in file "phpThumb.php" on line 145
setParameter(config_http_follow_redirect, TRUE) in file "phpThumb.php" on line 145
setParameter(config_allow_local_http_src, FALSE) in file "phpThumb.php" on line 145
setParameter(config_use_exif_thumbnail_for_speed, FALSE) in file "phpThumb.php" on line 145
setParameter(src, string(15) "images/disk.jpg") in file "phpThumb.php" on line 377
resolvePath: D:/xampp/htdocs/phpThumb-master/images/disk.jpg (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1141
resolvePath: iteration, path=D:/xampp/htdocs/phpThumb-master/images/disk.jpg, base path = D:\xampp\htdocs in file "phpthumb.class.php" on line 1160
open_basedir: "" in file "phpthumb.class.php" on line 1127
resolvePath: stop at component 1 in file "phpthumb.class.php" on line 1176
resolvePath: stop at path=D:/xampp/htdocs/phpThumb-master/images/disk.jpg in file "phpthumb.class.php" on line 1179
resolvePath: path parsed, over in file "phpthumb.class.php" on line 1185
setSourceFilename(D:/xampp/htdocs/phpThumb-master/images/disk.jpg) set $this->sourceFilename to "D:/xampp/htdocs/phpThumb-master/images/disk.jpg" in file "phpthumb.class.php" on line 292
setParameter(w, string(3) "300") in file "phpThumb.php" on line 377
setParameter(hash, string(32) "18ccf3eadf4ad66171f880caf4ead6df") in file "phpThumb.php" on line 377
setParameter(phpThumbDebug, integer 9) in file "phpThumb.php" on line 377
$CanPassThroughDirectly=false because $_GET[hash] are set in file "phpThumb.php" on line 460
$CanPassThroughDirectly="0" && $phpThumb->src="D:/xampp/htdocs/phpThumb-master/images/disk.jpg" in file "phpThumb.php" on line 471
$AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 970
$this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 981
$this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 998
SetCacheFilename() _src set from md5($this->sourceFilename) "D:/xampp/htdocs/phpThumb-master/images/disk.jpg" = "19b87fbf65da1b54448c2b667d58e991" in file "phpthumb.class.php" on line 3527
SetCacheFilename() _par set from md5(_w300_dpi150_q75) in file "phpthumb.class.php" on line 3560
Would have used cached file, but skipping due to phpThumbDebug in file "phpThumb.php" on line 57
Would have sent headers (1): Last-Modified: Mon, 07 Mar 2016 11:34:44 GMT in file "phpThumb.php" on line 58
Would have sent headers (2): Content-Type: image/jpeg in file "phpThumb.php" on line 60
Would have sent headers (3): Location: /phpThumb-master/cache//1/19/phpThumb_cache_localhost__src19b87fbf65da1b54448c2b667d58e991_parf3e2de904857fa573b11648f988e0f6a_dat1454542486.jpeg in file "phpThumb.php" on line 63
$this->sourceFilename set to "D:/xampp/htdocs/phpThumb-master/images/disk.jpg" in file "phpthumb.class.php" on line 894
$this->cache_filename already set, skipping SetCacheFilename() in file "phpthumb.class.php" on line 3482
starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3320
GetImageSize(D:/xampp/htdocs/phpThumb-master/images/disk.jpg) says image is 1252x1159 in file "phpthumb.class.php" on line 3330
$this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1592
ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 2287
ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3370
SetOrientationDependantWidthHeight() starting with "1252"x"1159" in file "phpthumb.class.php" on line 3299
SetOrientationDependantWidthHeight() setting w="300", h="0" in file "phpthumb.class.php" on line 3315
EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3427
starting SourceImageToGD() in file "phpthumb.class.php" on line 3686
starting ImageCreateFromFilename(D:/xampp/htdocs/phpThumb-master/images/disk.jpg) in file "phpthumb.class.php" on line 3601
ImageCreateFromFilename found ($getimagesizeinfo[2]==2) in file "phpthumb.class.php" on line 3610
Calling ImageCreateFromJPEG(D:/xampp/htdocs/phpThumb-master/images/disk.jpg) in file "phpthumb.class.php" on line 3618
Not using EXIF thumbnail data because $this->gdimg_source is already set in file "phpthumb.class.php" on line 3753
CalculateThumbnailDimensions() starting with [W,H,sx,sy,sw,sh] initially set to [1252,1159,,,,] in file "phpthumb.class.php" on line 3170
CalculateThumbnailDimensions() starting with [x,y,w,h] initially set to [0,0,1252,1159] in file "phpthumb.class.php" on line 3185
CreateGDoutput() returning canvas "300x277" in file "phpthumb.class.php" on line 3294
ImageResizeFunction($o, $s, 0, -0, 0, 0, 300, 277.71565495208, 1252, 1159) in file "phpthumb.class.php" on line 4336
memory_get_usage() after copy-resize = 9108360 in file "phpthumb.class.php" on line 424
memory_get_usage() after ImageDestroy = 1813320 in file "phpthumb.class.php" on line 426
AntiOffsiteLinking() checking $_SERVER[HTTP_REFERER] "http://localhost/phpThumb-master/demo/phpThumb.demo.demo.php" in file "phpthumb.class.php" on line 2450
AntiOffsiteLinking() - "localhost" is in $this->config_nooffsitelink_valid_domains (localhost) in file "phpthumb.class.php" on line 2464
AntiOffsiteLinking() says this is allowed in file "phpthumb.class.php" on line 2483
skipping AlphaChannelFlatten() because !$this->is_alpha in file "phpthumb.class.php" on line 2539
GenerateThumbnail() completed successfully in file "phpthumb.class.php" on line 438
CleanUpCacheDirectory() set to purge (30.0 days; 10.00 MB; 200 files) in file "phpthumb.class.php" on line 712
CleanUpCacheDirectory() skipped because "D:\xampp\htdocs\phpThumb-master/cache/\phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 722
ImageInterlace($this->gdimg_output, 1) in file "phpthumb.class.php" on line 468
RenderOutput() attempting ImageJPEG($this->gdimg_output) in file "phpthumb.class.php" on line 471
RenderOutput() completing with $this->outputImageData = 9256 bytes in file "phpthumb.class.php" on line 571
RenderToFile(D:\xampp\htdocs\phpThumb-master/cache/\1\19\phpThumb_cache_localhost__src19b87fbf65da1b54448c2b667d58e991_parf3e2de904857fa573b11648f988e0f6a_dat1454542486.jpeg) succeeded in file "phpthumb.class.php" on line 599
Would have used cached file, but skipping due to phpThumbDebug in file "phpThumb.php" on line 57
Would have sent headers (1): Last-Modified: Mon, 07 Mar 2016 11:34:44 GMT in file "phpThumb.php" on line 58
Would have sent headers (2): Content-Type: image/jpeg in file "phpThumb.php" on line 60
Would have sent headers (3): Location: /phpThumb-master/cache//1/19/phpThumb_cache_localhost__src19b87fbf65da1b54448c2b667d58e991_parf3e2de904857fa573b11648f988e0f6a_dat1454542486.jpeg in file "phpThumb.php" on line 63
$this->debugtiming:
1457350505.130591 : phpThumb() constructor in file "phpthumb.class.php" on line 226
1457350505.121591 : phpThumb.php start in file "phpThumb.php" on line 112
1457350505.132591 : phpThumbDebug[2] in file "phpThumb.php" on line 362
1457350505.133591 : phpThumbDebug[5] in file "phpThumb.php" on line 550
1457350505.134591 : phpThumbDebug[7] in file "phpThumb.php" on line 631
1457350505.261599 : phpThumbDebug[8] in file "phpThumb.php" on line 641
1457350505.269599 : skipped using cached image in file "phpThumb.php" on line 56
1457350505.274599 : phpThumbDebug[9] in file "phpThumb.php" on line 674
Total processing time: 0.153008`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment