/** @var int number of concurrent requests */
public $curlPoolSize = 10;
$chunks = array_chunck($resul, $this->curlPoolSize);
foreach ($chunks as $chunk) {
// Do multi curl requests
$index=null;
do { // required
curl_multi_exec($mh,$index);
} while($index > 0);
// And other things with curl results
}
<target name="copy_admin_configure_files" description="Copying compontent configure files">
<echo message="Copying component configure files" />
<copy file="${joomla_admin_component}/index.html" todir="${package_temporary}" />
<copy file="${joomla_admin_component}/script.php" todir="${package_temporary}" />
<version releasetype="Bugfix" file="${package_root}/mycomponent_version.txt" property="version.number" />
<copy todir="${package_temporary}">
<fileset dir="${joomla_admin_component}">
<include name="mycomponent.xml" />
</fileset>
<filterchain>
<replaceregexp>
<regexp pattern="<version>\d+\.\d+\.\d+<\/version>" replace="<version>${version.number}</version>" ignoreCase="true" modifiers="m" />
</replaceregexp>
</filterchain>
</copy>
</target>