php - Imagick will not catch Notices or Warnings -


When information or warning occurs, the image fails. However, I am unable to catch the notice or warning.

  & lt ;? Php $ image = New Imagick ($ resource); {$ Image- & gt; Try setImageCompressionQuality ("no number should be string here"); } Grip (magic expense $ e) {echo "this is a catch"; // should catch here, but no! }? & Gt;  

The above code should be INT when the passed string must be caught due. The image fails but does not execute the catch. I still receive this message:

Notice: The use of undefined continuous should be a number, not a string here - is considered 'd' in / var / www / class Line 15 warning on .php: Imagick :: setimagecompressionquality () parameter expects to be long, string is passed on /var/www/class.php on line 15

I have also tried (exception $ e as above, you should also see return image of $ image-> setImageCompressionQuality and notice

with @.

Notice can be changed in exceptions as described here, this is an interesting solution, but I do not recommend following it. It is better to check accuracy.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -