Skip to content

Commit 0dda3cd

Browse files
committed
Fix phpGH-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.
1 parent 55aa5f3 commit 0dda3cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gdb/php_gdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def load_type_bits():
301301

302302
(symbol,_) = gdb.lookup_symbol("zend_gc_refcount")
303303
if symbol == None:
304-
raise "Could not find zend_types.h: symbol zend_gc_refcount not found"
304+
raise Exception("Could not find zend_types.h: symbol zend_gc_refcount not found")
305305
filename = symbol.symtab.fullname()
306306

307307
bits = {}

0 commit comments

Comments
 (0)