When trying to parse the Database/docs/tutorial.txt with the RST parser to XHTML, this exception is thrown:
ezcDocumentParserException: Parse error: Fatal error: 'Unexpected node: Title.' in line 334 at position 1. in /home/as/dev/ezcomponents/trunk/Document/src/interfaces/parser.php on line 64
Call Stack:
0.0010 342768 1. {main}() /home/as/dev/ezcomponents/docs/examples/applications/TestDocument/rst2html.php:0
0.0174 820764 2. ezcDocumentRst->getAsXhtml() /home/as/dev/ezcomponents/docs/examples/applications/TestDocument/rst2html.php:22
0.2619 3752364 3. ezcDocumentRstParser->parse(array(1777)) /home/as/dev/ezcomponents/trunk/Document/src/document/rst.php:254
1.2201 5026688 4. ezcDocumentRstParser->reduceSection(class ezcDocumentRstSectionNode) /home/as/dev/ezcomponents/trunk/Document/src/document/rst/parser.php:448
1.2204 5029664 5. ezcDocumentParser->triggerError(long, string(23), null, long, long) /home/as/dev/ezcomponents/trunk/Document/src/document/rst/parser.php:3625
for this RST:
Instead, you should use bindParameter() to achieve the same effect: ::
$company = 'eZ systems';
$section = 'Norway';
$q->insertInto( 'query_test' )
->set( 'id', 1 )
->set( 'company', $q->bindParam( $company ) )
->set( 'section', $q->bindParam( $section ) )
->set( 'employees', 20 );
$stmt = $q->prepare();
$stmt->execute();
$q->insertInto( 'query_test' );
$q->set( 'id', 2 );
$q->set( 'employees', 70 );
$company = 'Trolltech';
$section = 'Norway';
$stmt = $q->prepare();
$stmt->execute();
..
- difference in case sensitivity
- difference in allowed field length
- difference in what you can compare (e.g TRUE =! 0)