I have a code in command line, but if is run it, drop Segmentation fault. If i run it in browser, dont run is perfect. Any idea?
Linux CentOs.
I have a code in command line, but if is run it, drop Segmentation fault. If i run it in browser, dont run is perfect. Any idea?
Linux CentOs.
If i delete this record from config, dont drop error.
'import'=>array(
'application.models.*',
'application.components.*',
),
This is yii, or php bug? Or i’am the…
This is the file/class if drop error:
class MyDate {
public function convertDate($dateString) {
$myDateTime = DateTime::createFromFormat('Ymdhis', $dateString);
return $myDateTime ? $myDateTime->format('Y-m-d H:i:s') : null;
}
}