Xaver
Xaver

Reputation: 11682

What types are possible in error_get_last()

I'm searching for a list of possible "types" of errors in error_get_last()

For instance the method returns this array:

Array
(
    [type] => 1
    [message] => Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes)
    [file] => /dir/file.php
    [line] => 123
)

So I assume "1" is a "Fatal Error"

What are the others?

Upvotes: 1

Views: 2207

Answers (1)

Ulrich Thomas Gabor
Ulrich Thomas Gabor

Reputation: 6654

These types are just the php error constants.

Upvotes: 9

Related Questions