Skip to content

php 8.5 compile error - zend_exception_get_default not declared #544

@rbro

Description

@rbro

When compiling v8js against PHP 8.5.0RC2, I got the below error:

/tmp/v8js/v8js_exceptions.cc:100:58: error: ‘zend_exception_get_default’ was not declared in this scope; did you mean ‘zend_exception_set_previous’?
  100 |                         zend_class_entry *exception_ce = zend_exception_get_default();

Looking at https://github.com/php/php-src/blob/PHP-8.5/UPGRADING.INTERNALS#L54, it says:

zend_exception_get_default() was removed, use zend_ce_exception directly.

I updated line 100 of v8js_exceptions.cc to be:

zend_class_entry *exception_ce = zend_ce_exception;

and that seemed to resolve the issue as it compiled cleanly.

Thanks for your help.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions