php - Segmentation fault (11) when save Laravel 4.2 Eloquent model -


i have problem when try duplicate laravel eloquent model. model has 121 columns , work firebird database, apache 2.2.22, php 5.4.35 , debian.

when save method execute new model stored in database, redirect method not execute , browser display "the connection server reset while page loads." in apache logs error "segmentation fault (11)".

i try run code artisan command still same error. on windows not work - cli has stopped working.

php code:

    $asort = asort::on($connname)->find($asortid);      // new asort_id     $newasortid = db::connection($connname)         ->table('rdb$database')         ->select(db::raw('gen_id(seq_asort, 1) id'))         ->lists('id');      $newasort = new asort;     $newasort = $asort->replicate();     //$newasort->setrawattributes($asort->getattributes());     $newasort->setconnection($connname);     $newasort->asort_id = $newasortid[0];     $newasort->asort_kod = iconv("utf-8", "cp1250", input::get('code'));     $newasort->asort_nazwa = iconv("utf-8", "cp1250", input::get('name'));     $newasort->asort_dodano_dataczas = date('y-m-d h:i:s');     $newasort->asort_data_mod = date('y-m-d h:i:s');     $newasort->save();      return redirect::to('route')         ->withmessage('message.'); 

in congig/database.php use in connection definition array option. solve same error me in laravel 5.1

'options' => array( // see php/pdo mysql drops connection if custom function used on long query pdo::attr_emulate_prepares => false, ),

i suppose myisam table cause problem.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -