Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php declare(strict_types=1); namespace Doctrine\DBAL\Types; use Doctrine\DBAL\Platfor..
Decoded Output download
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use function is_resource;
use function stream_get_contents;
/**
* Type that maps an SQL CLOB to a PHP string.
*/
class TextType extends Type
{
/**
* {@inheritDoc}
*/
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
{
return $platform->getClobTypeDeclarationSQL($column);
}
public function convertToPHPValue(mixed $value, AbstractPlatform $platform): mixed
{
return is_resource($value) ? stream_get_contents($value) : $value;
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use function is_resource;
use function stream_get_contents;
/**
* Type that maps an SQL CLOB to a PHP string.
*/
class TextType extends Type
{
/**
* {@inheritDoc}
*/
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
{
return $platform->getClobTypeDeclarationSQL($column);
}
public function convertToPHPValue(mixed $value, AbstractPlatform $platform): mixed
{
return is_resource($value) ? stream_get_contents($value) : $value;
}
}
Function Calls
None |
Stats
MD5 | 23f1edfeb350752182e22de03c771683 |
Eval Count | 0 |
Decode Time | 135 ms |