<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/com/dispatch.c, branch php-4.3.0dev</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/'/>
<entry>
<title>@ Added missing AddRef() calls in the COM extension. This should</title>
<updated>2002-05-30T23:07:23+00:00</updated>
<author>
<name>Harald Radi</name>
<email>phanto@php.net</email>
</author>
<published>2002-05-30T23:07:23+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=d3ca5abab7ec5b434ae0ab97cb359691149ff20e'/>
<id>d3ca5abab7ec5b434ae0ab97cb359691149ff20e</id>
<content type='text'>
@ fix weird behaviour (in particular with ADODB). (Harald)

# waah, this suxx

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
@ fix weird behaviour (in particular with ADODB). (Harald)

# waah, this suxx

</pre>
</div>
</content>
</entry>
<entry>
<title>- Make sure that COM and VARIANT resources are returned as resources</title>
<updated>2002-05-21T18:58:11+00:00</updated>
<author>
<name>Wez Furlong</name>
<email>wez@php.net</email>
</author>
<published>2002-05-21T18:58:11+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=e04d6ca9f7b0e553b1e978b31f0325ed048d5ea2'/>
<id>e04d6ca9f7b0e553b1e978b31f0325ed048d5ea2</id>
<content type='text'>
  rather than longs.
- Make the IDispatch implementation a bit more generic (and
  fix my mess of pointers).
- Add new com_message_pump() function that acts like an interruptible
  usleep() that processes COM calls/events.
- Add new com_print_typeinfo() function for "decompiling" the typeinfo
  for an interface into PHP script.  This is useful for generating a
  skeleton for use as an event sink.
- Add new com_event_sink() function for sinking events from COM
  objects.  Usage is like this:

&lt;?php

class IEEventSinker {
	var $terminated = false;

	function ProgressChange($progress, $progressmax) {
		echo "Download progress: $progress / $progressmax\n";
	}
	function DocumentComplete(&amp;$dom, $url) {
		echo "Document $url complete\n";
	}
	function OnQuit() {
		echo "Quit!\n";
		$this-&gt;terminated = true;
	}
}

$ie = new COM("InternetExplorer.Application");

$sink =&amp; new IEEventSinker();
com_event_sink($ie, $sink, "DWebBrowserEvents2");

$ie-&gt;Visible = true;
$ie-&gt;Navigate("http://www.php.net");

while(!$sink-&gt;terminated) {
	com_message_pump(4000);
}
$ie = null;
?&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  rather than longs.
- Make the IDispatch implementation a bit more generic (and
  fix my mess of pointers).
- Add new com_message_pump() function that acts like an interruptible
  usleep() that processes COM calls/events.
- Add new com_print_typeinfo() function for "decompiling" the typeinfo
  for an interface into PHP script.  This is useful for generating a
  skeleton for use as an event sink.
- Add new com_event_sink() function for sinking events from COM
  objects.  Usage is like this:

&lt;?php

class IEEventSinker {
	var $terminated = false;

	function ProgressChange($progress, $progressmax) {
		echo "Download progress: $progress / $progressmax\n";
	}
	function DocumentComplete(&amp;$dom, $url) {
		echo "Document $url complete\n";
	}
	function OnQuit() {
		echo "Quit!\n";
		$this-&gt;terminated = true;
	}
}

$ie = new COM("InternetExplorer.Application");

$sink =&amp; new IEEventSinker();
com_event_sink($ie, $sink, "DWebBrowserEvents2");

$ie-&gt;Visible = true;
$ie-&gt;Navigate("http://www.php.net");

while(!$sink-&gt;terminated) {
	com_message_pump(4000);
}
$ie = null;
?&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Added generic COM wrapper for PHP objects.</title>
<updated>2002-05-20T01:31:48+00:00</updated>
<author>
<name>Wez Furlong</name>
<email>wez@php.net</email>
</author>
<published>2002-05-20T01:31:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=fc964e88d36bc39ea51a12e5ad8496d469c0cc80'/>
<id>fc964e88d36bc39ea51a12e5ad8496d469c0cc80</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
