#014405: Comments in RST not handled for all cases

Description:

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)


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Fixed in revision #9816.

#260124 by Kore Nordmann on February 6th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Database
Affects 1.1 - Document 1.1
2008.2 - eZ components 2008.2
Fix Versions 2008.2.1 - eZ components 2008.2.1
2009.1alpha1 - eZ components 2009.1alpha1
Reporter Alexandru Stanoi
Responsible Kore Nordmann
Status 0 Closed
Resolution Fixed
Created February 5th, 2009
Updated February 6th, 2009
Resolved February 6th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels