#49497 [NEW]: No ability to supply a userland PHP function as a callback for a COM method.
| From: | RQuadling at GMail dot com | Date: | Tue, 08 Sep 2009 08:59:42 +0000 |
| Subject: | #49497 [NEW]: No ability to supply a userland PHP function as a callback for a COM method. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-142087@lists.php.net to get a copy of this message | ||
From: RQuadling at GMail dot com
Operating system: Windows XP SP3
PHP version: 5.3SVN-2009-09-08 (snap)
PHP Bug Type: COM related
Bug description: No ability to supply a userland PHP function as a callback for a COM method.
Description:
------------
Hi.
I think I'm pretty much on my own here, but here goes.
I'm evaluating a COM tool to allow me to OCR documents.
The COM object requires the registration of a callback to allow the
object to send results as it finds them (events in their terminology)
back to a handler for processing (say logging in a DB, etc.).
According to their documentation, in C and VB, the registration is a
trivial process of simply supplying the address of the function as the
handler for the callback.
Obviously, this won't work in PHP as a PHP function isn't accessible
like a compiled function from outside of PHP.
The "value" to be supplied is of type VT_I4. This is essentially just
the address of the function (as I see things).
So, I think that a proxy is needed. Something to act in the middle of
the PHP script and the callback invocation by the COM object.
Any ideas?
--
Edit bug report at http://bugs.php.net/?id=49497&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49497&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49497&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49497&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49497&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49497&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49497&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49497&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49497&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49497&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49497&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49497&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49497&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49497&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49497&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49497&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49497&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49497&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49497&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49497&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49497&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49497&r=mysqlcfg