PHP 7.0.15 / MySQL 5.6.35
When you fetch 16777212 byte data from MySQL database via pdo, a null byte character seems to be added to the end of the data.
CREATE TABLE `test` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`data` longtext,
$ motion --version | |
3.8 |
$user = User::find(1) | |
$new_user = $user->replicate(); | |
$new_user->name = 'new name'; | |
$new_user->save(); |
def tableView(tableView, canEditRowAtIndexPath:indexPath) | |
if (hoge == true) | |
return true | |
else | |
return false | |
end | |
end |
def isSimulator | |
UIDevice.currentDevice.model.hasSuffix "Simulator" | |
end |
* { | |
font-family:"ヒラギノ丸ゴ Pro W4","Hiragino Maru Gothic Pro"; | |
} | |
.aim { | |
font-size:13px; | |
} | |
.aeF, .gt, table.F td { | |
font-size:14px; | |
} | |
.Al, textarea.Ak { |
<?php | |
$value_1 = rand(1, 10); | |
$value_2 = rand(1, 10); | |
if($_SERVER["REQUEST_METHOD"] == "POST"){ | |
if ($_POST['value_1'] + $_POST['value_2'] == $_POST['answer']) { | |
$kekka = 'ピンポーン!天才!'; | |
} else { | |
$kekka = 'ブブー!アホりー!'; | |
} | |
} else { |
<form action="http://localhost:8080/post_url" method="post" id="form_sample" accept-charset="utf-8"> | |
<input name="fuel_csrf_token" value="c9313a400c254e58c0d23f7fd599c297" type="hidden" id="form_fuel_csrf_token" /> | |
<h2>何歳やねん?</h2> | |
<table class="table table-bordered"> | |
<tr> | |
<th class="span2">年齢</th> | |
<td><input type="text" class="input-medium" style="ime-mode:disabled" id="form_age" name="age" /> 歳</td> | |
</tr> | |
</table> |
<?php echo $form['open']; ?> | |
<h2>何歳やねん?</h2> | |
<table class="table table-bordered"> | |
<tr> | |
<th class="span2"><?php echo $form['age']['label'];?></th> | |
<td><?php echo $form['age']['html'];?> 歳</td> | |
</tr> | |
</table> |
class Controller_Welcome extends Controller | |
{ | |
public function action_index() | |
{ | |
$fieldset = Myfieldset::forge('sample'); | |
$fieldset->addTextForNumeric('age', '年齢'); | |
$fieldset->addRadioWithBr('gender', '性別', array(1 => '男', 2 => '女')); | |
$fieldset->addRadioInline('season', '一番好きな季節', array(1 => '春', 2 => '夏', 3 => '秋', 4 => '冬')); | |
$view = View::forge('welcome/index'); | |
$view->set_safe(array('form' => $fieldset->getFormElements('post_url'))); |