<slide>
<title>Checking for errors (2)</title>

<blurb>Safeness levels:</blurb>
<list>
	<bullet>Confirm change recorded in memory: %[ 'w' => 1 ];%</bullet>
	<bullet>Confirm inclusion in journal: %[ 'j' => true ];%</bullet>
	<bullet>Confirm committed to disk: %[ 'fsync' => true ];%</bullet>
	<bullet>Confirm replication: %[ 'w' => 2 ];%</bullet>
</list>

<example result="1"><![CDATA[<?php
$m = new Mongo();
$c = $m->demo->talks;

$c->insert(
    [ '_id' => 'mongodb' ],      // document
    [ 'w' => 1 ]                 // options
);
?>]]></example>

<blurb>From 1.3:</blurb>
<example result="0"><![CDATA[<?php
$m = new MongoClient('mongodb://localhost/');
?>]]></example>

</slide>
