Decoded Output
Download--TEST--
CairoContext->copyPath() method
--SKIPIF--
<?php
if(!extension_loaded('cairo')) die('skip - Cairo extension not available');
?>
--FILE--
<?php
$surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50);
var_dump($surface);
$context = new CairoContext($surface);
var_dump($context);
var_dump($context->copyPath());
/* Wrong number args - expects 0 */
try {
$context->copyPath('foo');
trigger_error('identityMatrix requires 0 args');
} catch (CairoException $e) {
echo $e->getMessage(), PHP_EOL;
}
?>
--EXPECTF--
object(CairoImageSurface)#%d (0) {
}
object(CairoContext)#%d (0) {
}
object(CairoPath)#%d (0) {
}
CairoContext::copyPath() expects exactly 0 parameters, 1 given
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
| extension_loaded | 1 |
|---|
Variables
None
Stats
| MD5 | fc598c0208cf5935 |
|---|---|
| Eval Count | 0 |
| Decode Time | 99 ms |
Original Code
--TEST--
CairoContext->copyPath() method
--SKIPIF--
<?php
if(!extension_loaded('cairo')) die('skip - Cairo extension not available');
?>
--FILE--
<?php
$surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50);
var_dump($surface);
$context = new CairoContext($surface);
var_dump($context);
var_dump($context->copyPath());
/* Wrong number args - expects 0 */
try {
$context->copyPath('foo');
trigger_error('identityMatrix requires 0 args');
} catch (CairoException $e) {
echo $e->getMessage(), PHP_EOL;
}
?>
--EXPECTF--
object(CairoImageSurface)#%d (0) {
}
object(CairoContext)#%d (0) {
}
object(CairoPath)#%d (0) {
}
CairoContext::copyPath() expects exactly 0 parameters, 1 given