New Process::newInstance()

at 2008-05-28 in Announcements by friebe (0 comments)

A new method Process::newInstance() has been added. It simplifies situations where we want to fork the same executable an existing Process instance points to, but with different arguments.

Example

<?php 
// Current
$p= new Process(Runtime::getInstance()->getExecutable()->getFilename(), $args);

// New
$p= Runtime::getInstance()->getExecutable()->newInstance($args);
?>



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES

Related

Find related articles by a search for «New».