Modify

Ticket #439 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

tstamp exception with latest build

Reported by: Norm Katz <nkatz@…> Owned by: mrook
Priority: critical Milestone: 2.4.1
Component: phing-tasks-system Version: 2.4.0
Keywords: tstamp Cc:

Description

installed latest phing on centos and redhat with: pear install  http://phing.info/pear/phing-current.tgz

phing -v reports: version 2.1.1 What's the best way to install 2.4.1? pear install phing/phing (or upgrade) installs v2.1.1 as well.

Noticed tstamp is no longer included by default. Added line to defaults.properties and file to /usr/share/pear/phing/tasks/system/TstampTask.php

Created test.xml with: <project name="safe" default="dist" basedir=".">

<tstamp /> <echo msg="done {TSTAMP}" />

</project>

Get message: [Exception in XML parsing] exception 'ExpatParseException' with message '/var/phing/test.xml:6:8: Unexpected element <tstamp> within <project></project> tags.' in /usr/share/pear/phing/parser/ProjectHandler.php:157 Stack trace: #0 /usr/share/pear/phing/parser/AbstractSAXParser.php(77): ProjectHandler->startElement('tstamp', Array) #1 [internal function]: AbstractSAXParser->startElement(Resource id #410, 'tstamp', Array) #2 /usr/share/pear/phing/parser/ExpatParser.php(129): xml_parse(Resource id #410, '<?xml version="...', 1) #3 /usr/share/pear/phing/parser/ProjectConfigurator.php(92): ExpatParser->parse() #4 /usr/share/pear/phing/parser/ProjectConfigurator.php(58): ProjectConfigurator->parse() #5 /usr/share/pear/phing/Phing.php(414): ProjectConfigurator->configureProject(Object(Project), Object(PhingFile)) #6 /usr/share/pear/phing/Phing.php(154): Phing->runBuild() #7 /usr/share/pear/phing/Phing.php(182): Phing::start(Array, NULL) #8 /usr/share/pear/phing.php(41): Phing::fire(Array) #9 {main}

Attachments

Change History

comment:1 Changed 2 years ago by Norm Katz <nkatz@…>

I was able to install/upgrade phing with the pear -force option and install the XML_Serializer v0.20.0. Phing worked on my test xml file after that. You can close the issue.

comment:2 Changed 2 years ago by bschultz

  • Status changed from new to closed
  • Resolution set to worksforme
View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.