{"record":{"id":"22a7b53b5d49765d","repo":"phalcon/cphalcon","slug":"phalcon-image-adapter-gd-requires-gd-version-2-0","errorCode":null,"errorMessage":"Phalcon\\Image\\Adapter\\GD requires GD version '2.0.1' or greater, you have {version}","messagePattern":"Phalcon\\\\Image\\\\Adapter\\\\GD requires GD version '2\\.0\\.1' or greater, you have (.+?)","errorType":"exception","errorClass":"Phalcon\\Image\\Exceptions\\VersionMismatch","httpStatus":null,"severity":"error","filePath":"phalcon/Image/Adapter/Gd.zep","lineNumber":924,"sourceCode":"            0,\n            width,\n            height\n        );\n    }\n\n    /**\n     * Checks the installed version of GD\n     *\n     * @throws Exception\n     */\n    private function check() -> void\n    {\n        var version;\n\n        let version = this->getVersion();\n\n        if (true !== version_compare(version, \"2.0.1\", \">=\")) {\n            throw new VersionMismatch(version);\n        }\n    }\n}\n","sourceCodeStart":906,"sourceCodeEnd":928,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Image/Adapter/Gd.zep#L906-L928","documentation":"Error \"Phalcon\\Image\\Adapter\\GD requires GD version '2.0.1' or greater, you have {version}\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Image/Adapter/Gd.zep:924 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}