Skip to content

Commit

Permalink
Revert "Fix bug GH-1 (mysqli_sql_exception->sqlstate is inaccessible)"
Browse files Browse the repository at this point in the history
This reverts commit 64fca5c.
  • Loading branch information
kamil-tekiela committed Oct 21, 2021
1 parent 64fca5c commit c9d509b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion ext/mysqli/mysqli.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ PHP_MINIT_FUNCTION(mysqli)
mysqli_exception_class_entry = zend_register_internal_class_ex(&cex, spl_ce_RuntimeException);
mysqli_exception_class_entry->ce_flags |= ZEND_ACC_FINAL;
zend_declare_property_long(mysqli_exception_class_entry, "code", sizeof("code")-1, 0, ZEND_ACC_PROTECTED);
zend_declare_property_string(mysqli_exception_class_entry, "sqlstate", sizeof("sqlstate")-1, "00000", ZEND_ACC_PUBLIC);
zend_declare_property_string(mysqli_exception_class_entry, "sqlstate", sizeof("sqlstate")-1, "00000", ZEND_ACC_PROTECTED);

REGISTER_MYSQLI_CLASS_ENTRY("mysqli_driver", mysqli_driver_class_entry, class_mysqli_driver_methods);
ce = mysqli_driver_class_entry;
Expand Down
25 changes: 0 additions & 25 deletions ext/mysqli/tests/bugGH1.phpt

This file was deleted.

0 comments on commit c9d509b

Please sign in to comment.