diff --git a/reference/com/com.xml b/reference/com/com.xml index 680e1b30a4..2033d4fc7d 100644 --- a/reference/com/com.xml +++ b/reference/com/com.xml @@ -132,7 +132,7 @@ Specifies the codepage that is used to convert strings to unicode-strings and vice versa. The conversion is applied whenever a PHP string is passed as a parameter or returned from a method of this - COM object. The code page is sticky in PHP 5, which means that it will + COM object. The code page is sticky, which means that it will propagate to objects and variants returned from the object. @@ -161,7 +161,7 @@ property or method accesses are passed through to COM. - Starting with PHP 5, PHP will automatically detect methods that accept + PHP will automatically detect methods that accept parameters by reference, and will automatically convert regular PHP variables to a form that can be passed by reference. This means that you can call the method very naturally; you needn't go to any extra effort in @@ -169,85 +169,6 @@ -
- Pseudo Methods - - In PHP versions prior to 5, a number of not very pleasant hacks meant that - the following method names were not passed through to COM and were handled - directly by PHP. PHP 5 eliminates these things; read the details below to - determine how to fix your scripts. These magic method names are case - insensitive. - - - voidCOM::AddRef - - - - Artificially adds a reference count to the COM object. - - - - You should never need to use this method. It exists as a logical complement - to the Release() method below. - - - - voidCOM::Release - - - - Artificially removes a reference count from the COM object. - - - - You should never need to use this method. Its existence in PHP is a bug - designed to work around a bug that keeps COM objects running longer than - they should. - - -
-
- Pseudo Methods for Iterating - - These pseudo methods are only available if - com_isenum returns &true;, in which case, they hide - any methods with the same names that might otherwise be provided by the - COM object. These methods have all been eliminated in PHP 5, and you - should use instead. - - - variantCOM::All - - - - Returns a variant representing a SafeArray that has 10 elements; - each element will be an empty/null variant. This function was supposed to - return an array containing all the elements from the iterator, but was - never completed. Do not use. - - - variantCOM::Next - - - - Returns a variant representing the next element available from - the iterator, or &false; when there are no more elements. - - - variantCOM::Prev - - - Returns a variant representing the previous element available from - the iterator, or &false; when there are no more elements. - - - voidCOM::Reset - - - - Rewinds the iterator back to the start. - -
COM examples