mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fix GH-15923: GDB: Python Exception <class 'TypeError'>: exceptions must derive from BaseException
Triggers on release builds when printing data structures. You can't raise a string, you must raise exceptions. Closes GH-15928.
This commit is contained in:
parent
43dc2eb6d8
commit
31e2ec63d8
3 changed files with 6 additions and 2 deletions
|
@ -301,7 +301,7 @@ def load_type_bits():
|
|||
|
||||
(symbol,_) = gdb.lookup_symbol("zend_gc_refcount")
|
||||
if symbol == None:
|
||||
raise "Could not find zend_types.h: symbol zend_gc_refcount not found"
|
||||
raise Exception("Could not find zend_types.h: symbol zend_gc_refcount not found")
|
||||
filename = symbol.symtab.fullname()
|
||||
|
||||
bits = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue