AnnouncementsCommand line reflectionat 2010-02-16 in Announcements by friebeThe xp command line tool has a new command line switch, -r, which will print reflection information about a class, interface or enum. ![]() Output of: xp -r io.streams.FileInputStream This feature will be available with the next XP release, 5.7.8. If you're using an SVN checkout, you will need to update the runners as follows: $ cd ~/bin SVN movedat 2010-02-15 in Announcements by friebe The XP repositories "xp", "xpforge" and "xpdoc" have been moved to a new server, xpsrv.net. To fix your local SVN (development and/or anonymous) checkouts, use the following commands:1. Find out the checkout URL ~/devel/xp/trunk$ svn info . | grep ^URL 2. Use svn switch. The new URL is the same except for the hostname! ~/devel/xp/trunk$ svn switch \(The backslashes indicate wrapped lines and are not part of the command) Done! Bind server sockets to any free portat 2010-02-01 in Unittests, Editorial, Announcements by friebeAt the company I work for, we let the XP Framework's unittest run on various different machines, including Windows 2008 server and 32- as well as 64-bit Debian Linux boxes, with PHP versions ranging from 5.2.0 - 5.3.1 (lots of permutation, yes). ![]() On some of the newer machines we have configured Hudson to start multiple test runners at the same time. This lead to problems with the integration tests (for the FTP API, for example) where we actually fork off a standalone server in the background: The port in use was hardcoded. While this is perfectly OK normally, with mutiples suites executing simultaneously and trying to bind the same port, we were running into problems. (more) 5.7.7-RELEASEat 2010-01-26 in Announcements, Releases by gelliThe XP team is proud to announce the availability of the 5.7.7-RELEASE, featuring improvements to the web test API, support for reading and creating zip files (RFC #0175) and zip compressed streams , easy access of standard input in command line classes as well as several overall improvements and bugfixes. http://releases.xp-framework.net/xml/release?5.7.7 Windows runnersat 2010-01-15 in Releases, Announcements by friebe The Windows runners provided with the XP Framework were not shutting down PHP correctly when Ctrl+C was pressed in the shell. In Windows console windows this can be easily worked around by setting the Console.CancelKeyPress property to a delegate which will kill the executed PHP runtime. If any of the XP runners was run from inside a Cygwin shell though, this is not possible - see http://www.cygwin.com/ml/cygwin/2006-12/msg00151.html - Cygwin simply kills the XP runner - and we thus cannot do anything (an experiment with a WMI monitoring process seemed to work but caused problems in certain circumstances) and you will have to continue to taskkill /f /pid XXXX'ing the "left-over" PHP processes manuallyA bugfix for this problem has been comitted to the XP Framework and will be available in the upcoming 5.7.7-RELEASE. If you're using an SVN head checkout (and are using Windows), you should update the runners as follows: $ cd ~/bin BSD Runnersat 2010-01-10 in Releases, Announcements by friebe The XP runners could fail under certain circumstances on BSD operating systems if the /proc filesystem was not mounted. This is due to the fact that the FreeBSD kernel does not keep command lines longer than kern.ps_arg_cache_limit in memory and we rely on the command line an XP application was started with including arguments being available in the lang.Runtime class.A bugfix for this problem has been comitted to the XP Framework and will be available in the upcoming 5.7.7-RELEASE. If you're using an SVN head checkout (and are using FreeBSD), you should update the runners as follows: $ cd ~/bin FTP API Class constantsat 2009-12-28 in Announcements by friebeThe global constants FTP_ASCII and FTP_BINARY have been replaced inside the peer.ftp package by class constants in the FtpTransfer class. Although these resolve to the same integer values and no change to existing sourcecode is required, the class constants are the preferred and portable way. <?php XP Setup and HTTP proxiesat 2009-12-24 in Releases, Announcements by friebeIf you're behind a firewall which will not permit external network connection and are thus using a HTTP proxy, the XP setup routine now supports this: $ cd ~/binSupport for HTTP proxies will be available in the setup routine for the upcoming XP release, 5.7.7: $ cd ~/xp New XMLParser methodsat 2009-12-17 in Announcements by friebeIn the spirit of adding fluent interface usage to the XP Framework, we added two new method to the xml.parser.XMLParser class - withCallback() and withEncoding() - complementing the setCallback() and setEncoding() methods. This way, you can rewrite your source as follows: <?php 5.7.6-RELEASEat 2009-12-16 in Announcements, Releases by friebeThe XP team is proud to announce the availability of the 5.7.6-RELEASE, which features improvements to the logging API (RFC #0192), changes to the scriptlet API to support Apache's mod_proxy solution, the new CSV API (RFC #0191), and various features and bugfixes. http://releases.xp-framework.net/xml/release?5.7.6 |
|