Pierre Joye
1431ba235b
- Fixed crash in com_print_typeinfo when an invalid typelib is given
2009-10-27 19:16:55 +00:00
Kalle Sommer Nielsen
485f28aae9
MFH: Fixed #45280 (Reflection of instantiated COM classes causes PHP to crash) (Paul Richards, Kalle)
2009-07-01 18:44:56 +00:00
Kalle Sommer Nielsen
ff88b45ffc
MFH: Fix compiler warnings
2009-05-19 17:38:29 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Felipe Pena
fc2fb50d09
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-11-17 11:28:01 +00:00
Felipe Pena
7a37fa2d6b
- Revert ZEND_BEGIN_ARG_INFO change
2008-11-02 21:19:39 +00:00
Felipe Pena
df10005563
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-10-24 14:35:40 +00:00
Jani Taskinen
b17dc14f18
MFH: nuketh C++ comments
2008-08-03 12:15:55 +00:00
Felipe Pena
2838f22fc0
- Added arginfo
2008-07-14 18:08:37 +00:00
Felipe Pena
84a8bb038a
MFH: New way for check void parameters
2008-03-10 22:15:36 +00:00
Nuno Lopes
61eb7ae554
remove unused PHP_EXTNAME_API macros.
...
#in preparation for the gcc 4 visibility patch
2008-01-03 16:20:33 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Dmitry Stogov
c3ab6bd091
Fixed bug #43136 (possible crash on script execution timeout. The EG(function_state_ptr) is completely removed, EG(current_execute_data)->function_state must be used instead)
2007-11-20 09:51:12 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Dmitry Stogov
1b01048cd8
Fixed 64-bit issues
2007-04-09 15:32:35 +00:00
Dmitry Stogov
6c394c8b38
ZTS fix
2007-04-09 15:32:08 +00:00
Martin Kraemer
9c62ddde34
Typo
2007-03-14 09:58:14 +00:00
andy wharmby
a252c79d53
Fixed bug #35872 (Prevent object store references during RSHUTDOWN)
2007-03-05 15:49:00 +00:00
Marcus Boerger
50ea26760d
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
2007-02-24 02:17:47 +00:00
Stanislav Malyshev
31a325823a
Cosmetic fix - safe_emalloc(nmemb, size, offset)
2007-02-21 01:13:44 +00:00
Stanislav Malyshev
a72041406b
CreateInstance requires BSTR (should fix #33188 )
2007-02-21 01:11:11 +00:00
Stanislav Malyshev
47e06ea821
fix unallocated free
2007-02-20 20:30:36 +00:00
Dmitry Stogov
955d3e73e8
typo
2007-02-19 17:29:19 +00:00
andy wharmby
74cafe0840
Fixed bug #37927 (Prevent trap when COM extension processes argument of type VT_DISPATCH|VT_REF)
2007-02-02 15:44:06 +00:00
andy wharmby
cda82bc0a3
Fixed bug #34564 (COM extension not returning modified "out" argument)
2007-02-02 15:27:35 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Rob Richards
47fb655a56
fix bug #33734 and related (Something strange with COM Object)
...
- caused by fix in com_handlers.c rev 1.22.2.5
2006-12-24 12:32:10 +00:00
Rob Richards
b7ec6f90e0
- fix bug #33386 (ScriptControl only sees last function of class): com_wrapper.c
...
- fix bug #37588 (COM Property propputref converts to PHP function
and can't be accesed): com_handlers.c
- fix bug #39596 (Creating Variant of type VT_ARRAY): com_variant.c
- add tests
2006-12-24 10:00:59 +00:00
Rob Richards
c2c9908f88
fix heap corruption when adding/caching typelib (also fixes bug 39606)
...
add test
2006-12-09 10:52:09 +00:00
Dmitry Stogov
c06f9e1efe
COM initialization/deinitialization are done only if necessary
2006-11-17 11:40:52 +00:00
Ilia Alshanetsky
941c036297
Fixed bug #36644 (possible crash in variant_date_from_timestamp()).
2006-11-13 15:33:26 +00:00
Ilia Alshanetsky
76f23d4dcf
Fixed bug #38400 (Use of com.typelib_file may cause a crash).
2006-10-18 23:47:33 +00:00
Ilia Alshanetsky
df5c300303
Fixed bug #38198 (possible crash when COM reports an exception).
2006-10-10 17:32:50 +00:00
Edin Kadribasic
480e788d95
Fix for #38985 (Wez)
2006-10-06 12:23:30 +00:00
Ilia Alshanetsky
4c65e0e1cd
Added missing validation checks around expand_filepath()
2006-09-16 18:10:32 +00:00
Dmitry Stogov
b0c4150967
Prevent opening of empty filename ""
2006-09-08 05:52:00 +00:00
Edin Kadribasic
21ac19eb94
Fixed #37602 by olek at neurosoft dot pl
2006-08-25 12:01:57 +00:00
Dmitry Stogov
1dbaae2795
Added automatic module globals management
2006-06-15 18:33:09 +00:00
Rob Richards
f064d19f40
- Update after api changes
2006-05-10 14:39:10 +00:00
Antony Dovgal
59b8592c8c
fix bug #36898 (__set() leaks in classes extending internal ones)
...
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
to initialize and destroy zend_object structs
2006-03-29 14:28:43 +00:00
Rob Richards
7831900882
fix mem leak with iterators
...
fix object casting for edge case
2006-02-07 11:50:54 +00:00
Rob Richards
a78a0b460c
Fixed bug #34272 (empty array onto COM object blows up)
...
fix mem leaks
WS fixes
add test
2006-02-04 10:57:28 +00:00
Rob Richards
c53b926a35
Fix bug #35954 (Fatal com_exception casting object)
2006-01-26 11:17:34 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
foobar
3e669bc950
MFH: nuke php3 legacy
2005-12-06 02:28:41 +00:00
Rob Richards
934e19107d
Fixed bug #35316 (Application exception trying to create COM object)
2005-11-27 12:19:04 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Antony Dovgal
755b027e8c
fix C++ comments
2005-04-22 08:59:21 +00:00
Wez Furlong
7013788711
merge from branch: fixes for #32758 and #32759
2005-04-19 06:14:56 +00:00
Wez Furlong
195f69f0c7
merge bug fixes from branch
2005-04-18 16:38:31 +00:00
Ilia Alshanetsky
0810696e50
removed unused vars.
2005-04-18 03:04:15 +00:00
Ilia Alshanetsky
496031df78
emalloc -> safe_emalloc.
2004-11-21 20:43:10 +00:00
Rob Richards
8f32b61acb
fix crash when calling com methods
...
- due to change in Zend
2004-11-20 11:40:49 +00:00
Wez Furlong
9bffcfb407
Fix crash bug.
...
# how the f*** did this work in the first place!?
2004-10-09 13:08:16 +00:00
Wez Furlong
b3d9c5bea6
Improve .Net support; this should reduce "failed to init .net" errors.
...
Improve error reporting while we're at it too.
2004-10-09 04:39:58 +00:00
Wez Furlong
9ce9605723
Use the correct free() here...
2004-09-19 22:20:55 +00:00
Wez Furlong
8c4b687769
Fix for Bug #29490 from Michael Sisolak.
...
Another fine patch; thanks Michael.
2004-08-07 21:00:59 +00:00
Wez Furlong
4d39a171ee
Even more verbosity...
2004-08-03 12:41:26 +00:00
Wez Furlong
f765acea59
Even more verbosity in case of error
2004-08-03 09:44:04 +00:00
Wez Furlong
d38f944d1c
Better error reporting
2004-08-02 18:02:48 +00:00
Wez Furlong
d4ad4ac370
Allow COM to build under non-zts.
...
Thanks Frank.
2004-07-31 17:27:03 +00:00
Wez Furlong
7b1d95adba
Fix my favourite call user func mistake
2004-07-29 14:06:24 +00:00
Wez Furlong
4da80ed1de
Use the correct lengths when building the name -> dispid mapping
2004-07-29 06:19:27 +00:00
Wez Furlong
a783891e76
that's not my copy of the exception ctor, do don't fiddle its flags.
2004-07-27 22:17:40 +00:00
Wez Furlong
aa74430ee0
"better" "fix" for #29392 .
...
This fixes the crash; the sample script:
$c = new COM('ADODB.Connection');
echo $c;
still does not work because the engine tries to call $c->__toString() and the
ADODB object *might* implement that method, but doesn't know until you open the
connection.
2004-07-27 22:17:00 +00:00
Wez Furlong
3e327b6e21
protect caller from a potential bailout
2004-07-27 03:44:40 +00:00
Wez Furlong
530d41732d
Revert last fix, because it breaks dynamic methods
2004-07-27 02:37:54 +00:00
Wez Furlong
20534bc445
Fix #29392 COM behaved badly for non-existant methods
2004-07-27 01:59:44 +00:00
Wez Furlong
8a8b20877c
Possible fix for #29258 (unverified)
...
win32 people, please test (I have no working win32 build env right now)
2004-07-19 13:39:57 +00:00
Ilia Alshanetsky
f28b063c28
Last dangerous alloca() bits.
2004-07-08 01:18:43 +00:00
Ard Biesheuvel
5232a5afea
64-bit bugsquash party
2004-06-16 23:57:25 +00:00
Wez Furlong
f8518cc83a
Implement com_get_active_object() and a helper object for working with
...
persistent COM objects.
(That's the last of the stuff I want to sneak in before 5.0 is released).
2004-05-09 15:21:29 +00:00
Wez Furlong
6f8233897e
Urgh!
...
Use the correct function to free messages from php_win_err(), otherwise
we say hello to Mr. S. Fault.
2004-05-09 14:28:19 +00:00
Wez Furlong
263723ec9b
Update for count_elements handler for overloaded objects.
2004-05-04 15:03:48 +00:00
Wez Furlong
173cf83629
Enable writing to SafeArray dimensions.
2004-05-03 20:10:58 +00:00
Wez Furlong
92d87a6a8d
Fix problem when assigning to a variable that holds an instance of
...
a COM/VARIANT/DOTNET object.
2004-05-03 18:19:07 +00:00
Wez Furlong
8ca144bba5
Fixup some constants and error handling.
...
Remove unfinished and un-needed function.
2004-05-03 15:51:41 +00:00
Wez Furlong
1ee2b46d2f
Should have tested this change before committing.
2004-04-28 23:24:33 +00:00
Wez Furlong
027d450166
Fix for Bug #28161 (and probably others that I can't find in the bug db;
...
the search interface sucks).
Expand the proxy object so it can handle psuedo array style properties.
ASP/VB code like this:
headObj.Attribute("RID") = rid
can be expressed like this in PHP:
$headObj->Attribute['RID'] = $rid;
In theory, this feature can be used for "multi dimensional" properties:
headObj.Attribute("RID", "Foo") = rid;
like this:
$headObj->Attribute['RID']['Foo'] = $rid;
2004-04-28 08:23:22 +00:00
Wez Furlong
696663bc3d
Add test
2004-04-22 14:29:33 +00:00
Wez Furlong
91dc1a516a
A working fix for the safearray mapping bug.
2004-04-22 14:27:11 +00:00
Wez Furlong
c50726fa4b
(probable) fix for Bug #27974 : PHP Arrays are not mapped to VARIANTs.
2004-04-22 00:50:49 +00:00
Wez Furlong
d16ad34368
This wasn't updated for new parameters for object handlers yet...
2004-04-13 17:51:36 +00:00
Hartmut Holzgraefe
eeb172b29f
"The Visa to Sibiria" (work in progress)
...
Adding a package.xml to a bundled extension does not only
ease the transition to PECL whereever suitable but also
allows to build and install an extension as "shared" using
the PEAR installer without having to deal with phpize and
friends by hand
2004-03-23 19:46:10 +00:00
Wez Furlong
27d7cd8594
update for read handler api change
2004-03-22 22:47:05 +00:00
Ilia Alshanetsky
d0a4801579
s/emalloc/safe_emalloc/ where appropriate.
2004-03-18 02:16:35 +00:00
Marcus Boerger
7dd5b1f126
Rename hasMore() to valid() as discussed. (Part V)
2004-03-08 21:17:39 +00:00
Zeev Suraski
7c710a9f9b
Use zval_ptr_dtor() to free variables as soon as they hit refcount of 0.
...
Note: You should not be using ZVAL_DELREF() in day to day usage. Instead,
you should use zval_ptr_dtor(). Use ZVAL_DELREF() only if you're
messing with the refcount directly and know what you're doing.
Note #2 : For clarity, if you want to initialize a new zval with a refcount
of 0, it's best to do that directly, instead of using ZVAL_DELREF
after allocating the zval...
2004-02-15 12:58:19 +00:00
Zeev Suraski
f041e73a67
Fix prototype/warning
2004-02-12 13:53:51 +00:00
Wez Furlong
08ed2cb9f7
fix copy-n-past error in constructor.
...
Spotted by Eric Colinet.
2004-02-12 12:11:21 +00:00
Zeev Suraski
30171a7590
zend_default_classes.h -> zend_exceptions.h
2004-02-12 10:43:27 +00:00
Zeev Suraski
2a9e1294bc
Update to new API
2004-02-08 17:25:54 +00:00
Zeev Suraski
8424be849f
- Update with new destructor code
2004-02-04 11:14:47 +00:00
Wez Furlong
42110742b7
update todo part of readme
2004-01-20 11:01:16 +00:00
foobar
f4983c0d3f
- Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5
2004-01-17 13:00:38 +00:00
Wez Furlong
c205153a0a
reinstate this ifdef for people without .Net SDK
2004-01-13 16:05:38 +00:00
Wez Furlong
bba1ded0b2
Fix refcount on these return values to avoid a leak and allow object dtor's to be called.
...
This in turn prevents a massive slow-down in CoUninitialize which would have to
forcibly destroy the COM objects in request shutdown.
2004-01-13 16:02:56 +00:00
Wez Furlong
4573a562a3
Fix leaking constructors.
...
Implement a cache for method signatures and DISPID's to
greatly improve performance when repeatedly accessing
members with the same names.
2004-01-13 13:38:11 +00:00
Wez Furlong
b7d0b397bc
Support automatic handling of byref parameters
2004-01-13 00:40:14 +00:00