Ticket #150 (closed defect: fixed)

Opened 1 month ago

Last modified 1 month ago

Carriage return not detected correctly when parsing annotations

Reported by: prema Assigned to: mikey
Priority: major Milestone: 0.9.0
Component: ReflectionApi Version: SVN-trunk
Keywords: Cc:

Description (Last modified by mikey)

When source files are stored with carriage return (though this is discouraged) the following situation is not detected correctly by the annotation parser:

/**
 * a description
 *
 * @param   string  $id  a param
 * @return  string
 * @Id
 */
public function setId($id) {...}

Here, the id annotation is not correctly recognized in case the d is followed by a carriage return instead of a unix line break.

Change History

07/14/08 17:42:35 changed by mikey

  • milestone set to 0.9.0.

07/16/08 17:01:31 changed by mikey

The problem seems to be windows line endings (carriage return), they are not detected correctly by the annotation name state.

07/16/08 17:01:36 changed by mikey

  • status changed from new to assigned.

07/16/08 17:23:01 changed by mikey

  • description changed.
  • summary changed from Annotation problem without using brackets to Carriage return not detected correctly when parsing annotations.

07/16/08 17:24:02 changed by mikey

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed with r1712.