WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
Uname:Linux wp 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64

Base Dir : /var/www/eduesan

User : www-data


403WebShell
403Webshell
Server IP : 202.131.237.196  /  Your IP : 216.73.216.192
Web Server : nginx/1.14.0
System : Linux wp 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User : www-data ( 33)
PHP Version : 7.2.24-0ubuntu0.18.04.17
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/php/72/src/ext/gd/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/php/72/src/ext/gd/tests/bug65148.phpt
--TEST--
Bug #65148 (imagerotate may alter image dimensions)
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip gd extension is not available');
?>
--FILE--
<?php

$interpolations = array(
    'IMG_BELL' => IMG_BELL,
    'IMG_BESSEL' => IMG_BESSEL,
    'IMG_BICUBIC' => IMG_BICUBIC,
    'IMG_BICUBIC_FIXED' => IMG_BICUBIC_FIXED,
    'IMG_BILINEAR_FIXED' => IMG_BILINEAR_FIXED,
    'IMG_BLACKMAN' => IMG_BLACKMAN,
    'IMG_BOX' => IMG_BOX,
    'IMG_BSPLINE' => IMG_BSPLINE,
    'IMG_CATMULLROM' => IMG_CATMULLROM,
    'IMG_GAUSSIAN' => IMG_GAUSSIAN,
    'IMG_GENERALIZED_CUBIC' => IMG_GENERALIZED_CUBIC,
    'IMG_HERMITE' => IMG_HERMITE,
    'IMG_HAMMING' => IMG_HAMMING,
    'IMG_HANNING' => IMG_HANNING,
    'IMG_MITCHELL' => IMG_MITCHELL,
    'IMG_POWER' => IMG_POWER,
    'IMG_QUADRATIC' => IMG_QUADRATIC,
    'IMG_SINC' => IMG_SINC,
    'IMG_NEAREST_NEIGHBOUR' => IMG_NEAREST_NEIGHBOUR,
    'IMG_WEIGHTED4' => IMG_WEIGHTED4,
    'IMG_TRIANGLE' => IMG_TRIANGLE,
);

$img = imagecreate(40, 20);
$results = array();

foreach ($interpolations as $name => $interpolation) {
  imagesetinterpolation($img, $interpolation);
  $t = imagecolorallocatealpha($img, 0, 0, 0, 127);
  $imgr = imagerotate($img, -5, $t);
  $results[$name] = array('x' => imagesx($imgr), 'y' => imagesy($imgr));
  imagedestroy($imgr);
}

imagedestroy($img);
print_r($results);
?>
===DONE===
--EXPECT--
Array
(
    [IMG_BELL] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_BESSEL] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_BICUBIC] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_BICUBIC_FIXED] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_BILINEAR_FIXED] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_BLACKMAN] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_BOX] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_BSPLINE] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_CATMULLROM] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_GAUSSIAN] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_GENERALIZED_CUBIC] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_HERMITE] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_HAMMING] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_HANNING] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_MITCHELL] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_POWER] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_QUADRATIC] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_SINC] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_NEAREST_NEIGHBOUR] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_WEIGHTED4] => Array
        (
            [x] => 40
            [y] => 23
        )

    [IMG_TRIANGLE] => Array
        (
            [x] => 40
            [y] => 23
        )

)
===DONE===

Youez - 2016 - github.com/yon3zu
LinuXploit