title: php 7.2 is preventing insert record without adding all the table's fields
body: <p>I upgraded my php version from 7.1 to 7.2.</p>
  
  <p>In my phpmyadmin I have a table like this one :</p>
  
  <pre><code>CREATE TABLE `images` (
    `image_id` int(11) NOT NULL,
    `image_name` varchar(255) CHARACTER SET utf8 NOT NULL,
    `image_title` varchar(255) CHARACTER SET utf8 NOT NULL ,
    `image_alternative` varchar(255) CHARACTER SET utf8 NOT NULL ,
    `image_folder` varchar(255) CHARACTER SET utf8 NOT NULL ,
    `image_status` int(11) NOT NULL ,
    `date` datetime DEFAULT current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  </code></pre>
  
  <p>image_id is the only required field. The rest, all optional and can be empty.
  When I'm trying to insert a record :</p>
  
  <pre><code>INSERT INTO `images`(`image_name`,`image_status`) VALUES ("new image",1);
  </code></pre>
  
  <p>I'm getting this error</p>
  
  <pre><code> MySQL said: Documentation #1364 - Field 'image_title' doesn't have a default value
  </code></pre>
  
  <p>To solve this issue I had to add in the table a predefined value for all fields or in my query to mention all fields even if they are empty.</p>
  
  <pre><code>INSERT INTO `images`(`image_name`, `image_title`, `image_alternative`, `image_folder`, `image_status`) 
  VALUES ("new image,"","","",0)
  </code></pre>
  
  <p>I understand that php 7.x is more secure from the old versions, and they are trying to make better with time. But how can I solve this issue without the need to change all my tables or my queries. Thank you </p>