Skip to content

method_exists causes a PDOException when used on a PDOStatement object during errorhandler execution #97

@mortenn

Description

@mortenn
Fatal error: Uncaught PDOException: SQLSTATE[IMSSP]: This function is not implemented by this driver. in /var/www/apps/php/KrameWork7/src/Utils/StringUtil.php:105
Stack trace:
 #0 /var/www/apps/php/KrameWork7/src/Utils/StringUtil.php(105): method_exists(Object(PDOStatement), '__toString')
 #1 /var/www/apps/php/KrameWork7/src/Runtime/ErrorFormatters/HTMLErrorFormatter.php(139): Kramework\Utils\StringUtil::variableAsString(Object(PDOStatement))
 #2 /var/www/apps/php/KrameWork7/src/Runtime/ErrorHandler.php(301): KrameWork\Runtime\ErrorFormatters\HTMLErrorFormatter->generate()
 #3 /var/www/apps/php/KrameWork7/src/Runtime/ErrorHandler.php(272): KrameWork\Runtime\ErrorHandler->formatError(Object(KrameWork\Runtime\ErrorTypes\ExceptionError), Array, Array, Object(KrameWork\Runtime\ErrorFormatters\HTMLErrorFormatter))
 #4 /var/www/apps/php/KrameWork7/src/Runtime/ErrorHandler.php(193): KrameWork\Runtime\ErrorHandler->catch(Object(KrameWork\Runtime\ErrorTypes\ExceptionError), false)
 #5 [internal function]: KrameWork\Runtime\ErrorHandler- in /var/www/apps/php/KrameWork7/src/Utils/StringUtil.php on line 105

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions