1--TEST-- 2Bug #70245 (strtotime does not emit warning when 2nd parameter is object or string) 3--FILE-- 4<?php 5$d = new DateTime('2011-01-15 00:00:00'); 6var_dump(strtotime('-1 month', $d)); 7?> 8--EXPECTF-- 9Warning: strtotime() expects parameter 2 to be integer, object given in %sbug70245.php on line %d 10bool(false) 11