#39930 [Opn->Fbk]: Error passing Word macro arguments
ID: 39930 Updated by: [EMAIL PROTECTED] Reported By: poon dot fung at gmail dot com -Status: Open +Status: Feedback Bug Type: COM related Operating System: Windows XP PHP Version: 5.2.0 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: [2006-12-22 07:34:47] poon dot fung at gmail dot com Description: I can call a Word macro without any argument ok. But when I pass a string arguement to a Word macro, I get the following exception. Source: Unknown Description: Unknown I discovered the following problem: 1. It works when a macro does not have argument. The macro can be in the default macro file "Module/NewMacros" or other module file such as "Module/MyMacros". 2. It works when a macro has one or more arguements when the macro is in default macro file "Module/NewMacros". It does not work when the same macro is copied to a different module file such as "Module/MyMacros". Reproduce code: --- Documents->Open('c:\testme.doc'); $arg1 = 'Some value'; // First test --> This works fine //$word->Application->Run('phptest1'); // Second test --> This works fine //$word->Application->Run('phptest2', $arg1); // Third test --> This works fine //$word->Application->Run('phptest3', $arg1, $arg1); // Forth test --> This works fine //$word->Application->Run('Normal.MyMacros.phptest1'); // Fifth test --> FAILED $word->Application->Run('Normal.MyMacros.phptest2', $arg1); // Sixth test --> FAILED //$word->Application->Run('Normal.MyMacros.phptest3', $arg1, $arg1); $word->Quit(); $word = null; /* // Word macros Sub phptest1() End Sub Sub phptest2(arg1 As String) End Sub Sub phptest3(arg1 As String, arg2 As String) End Sub */ ?> Expected result: To run the test: 1. Create a dummy Word document C:\testme.doc". 2. Copy the three dummy procedures (phptest1, phptest2 and phptest3) to Word's macro file "Normal/Module/NewMacros". 3. Create a new macro file "Normal/Module/MyMacros" and paste the same three procedures in it. 4. Uncomment the line after each test case and keep lines for other test cases commented. 5. Run each test case. Case 1-4: No output. Just finish without error. Case 5-6: Show the error below. Actual result: -- PHP Fatal error: Uncaught exception 'com_exception' with message 'Source: Unknown Description: Unknown' in C:\bug2.php:21 Stack trace: #0 C:\bug2.php(21): variant->Run('Normal.MyMacros...', 'Some value') #1 {main} thrown in C:\bug2.php on line 21 -- Edit this bug report at http://bugs.php.net/?id=39930&edit=1
#39943 [Opn->Bgs]: Configure scripts not detecting mysqlclient properly on 64bit
ID: 39943 Updated by: [EMAIL PROTECTED] Reported By: xachen at mac dot com -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: CentOS 4.4 - x86_64 PHP Version: 5.2.0 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: [2006-12-24 20:49:36] judas dot iscariote at gmail dot com Bogus ;) Use the --with-libdir=lib64 configure flag. [2006-12-24 20:17:15] xachen at mac dot com Description: When you go to ./configure your installation to work with MySQL and you have the libraries installed under /usr/lib64, as well as the appropriate ldconfig is provided and in place, PHP will still not detect it. This is fixable by going ln -s /usr/lib64/mysql /usr/lib Reproduce code: --- ./configure --enable-fastcgi --with-mysql Expected result: For MySQL to compile properly. Actual result: -- checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock configure: error: Cannot find libmysqlclient under /usr. -- Edit this bug report at http://bugs.php.net/?id=39943&edit=1
#39943 [Com]: Configure scripts not detecting mysqlclient properly on 64bit
ID: 39943 Comment by: judas dot iscariote at gmail dot com Reported By: xachen at mac dot com Status: Open Bug Type: Compile Failure Operating System: CentOS 4.4 - x86_64 PHP Version: 5.2.0 New Comment: Bogus ;) Use the --with-libdir=lib64 configure flag. Previous Comments: [2006-12-24 20:17:15] xachen at mac dot com Description: When you go to ./configure your installation to work with MySQL and you have the libraries installed under /usr/lib64, as well as the appropriate ldconfig is provided and in place, PHP will still not detect it. This is fixable by going ln -s /usr/lib64/mysql /usr/lib Reproduce code: --- ./configure --enable-fastcgi --with-mysql Expected result: For MySQL to compile properly. Actual result: -- checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock configure: error: Cannot find libmysqlclient under /usr. -- Edit this bug report at http://bugs.php.net/?id=39943&edit=1
#39943 [NEW]: Configure scripts not detecting mysqlclient properly on 64bit
From: xachen at mac dot com Operating system: CentOS 4.4 - x86_64 PHP version: 5.2.0 PHP Bug Type: Compile Failure Bug description: Configure scripts not detecting mysqlclient properly on 64bit Description: When you go to ./configure your installation to work with MySQL and you have the libraries installed under /usr/lib64, as well as the appropriate ldconfig is provided and in place, PHP will still not detect it. This is fixable by going ln -s /usr/lib64/mysql /usr/lib Reproduce code: --- ./configure --enable-fastcgi --with-mysql Expected result: For MySQL to compile properly. Actual result: -- checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock configure: error: Cannot find libmysqlclient under /usr. -- Edit bug report at http://bugs.php.net/?id=39943&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39943&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39943&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39943&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39943&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39943&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39943&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=39943&r=needscript Try newer version:http://bugs.php.net/fix.php?id=39943&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39943&r=support Expected behavior:http://bugs.php.net/fix.php?id=39943&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39943&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39943&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39943&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39943&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39943&r=dst IIS Stability:http://bugs.php.net/fix.php?id=39943&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39943&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39943&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39943&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=39943&r=mysqlcfg
#38840 [Asn->Bgs]: The Microsoft Virtual server COM object works with VB script but not on PHP
ID: 38840 Updated by: [EMAIL PROTECTED] Reported By: techscorpio at lxlabs dot com -Status: Assigned +Status: Bogus Bug Type: COM related Operating System: windows PHP Version: 5.1.6 Assigned To: wez New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. dupe of bug #38719 Previous Comments: [2006-09-15 10:31:45] techscorpio at lxlabs dot com Description: Hi, i am trying to warite a php script for administration of microsoft virtual server when i use a COM "VirtualServer.Application" the object is created but when i tried to access "VirtualMachines" etc,the COM function will troughs error. Reproduce code: --- vb script:- 'Script Begins On Error Resume Next 'Connect to Virtual Server Set virtualServer = CreateObject("VirtualServer.Application") 'Get collection of virtual machines set vmCollection = virtualServer.VirtualMachines 'Iterate over the virtual machines and display data For Each vm in vmCollection Wscript.Echo "==" Wscript.Echo "Name: " & vm.Name Wscript.Echo Wscript.Echo "Notes: " & vm.Notes Wscript.Echo "==" Next 'Script Ends Works Fine PHP Script VirtualMachines; //Iterate over the virtual machines and display data foreach( $vmCollection as $vm) { print("\n=="); print( "\nName: " $vm->Name); print("\n=="); } } Expected result: The Virtual Server objected created Actual result: -- Throughs Run time ERROR: Fatal error: Uncaught exception 'com_exception' with message 'Source: Unknown Description: Unknown' in C:\Program Files\lxlabs\ext\php\test.php:9 Stack trace: #0 C:\Program Files\lxlabs\ext\php\test.php(9): f1() #1 C:\Program Files\lxlabs\ext\php\test.php(2): f1() #2 {main} thrown in C:\Program Files\lxlabs\ext\php\test.php on line 9 When i cought Exception it will tough Object #2 please help me it's urgent -- Edit this bug report at http://bugs.php.net/?id=38840&edit=1
#39145 [Opn->Bgs]: OUT Parameter is not changing
ID: 39145 Updated by: [EMAIL PROTECTED] Reported By: sbreiler at gmx dot de -Status: Open +Status: Bogus Bug Type: COM related Operating System: Windows XP SP2 PHP Version: 5.2.0RC5 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. dupe of bug #34564 Previous Comments: [2006-10-13 10:25:13] sbreiler at gmx dot de In Delphi it looks like this (and is working): [code] procedure TForm1.Button1Click(Sender: TObject); var mycom: Variant; FunctionName: String; begin mycom := CreateOleObject('my.own'); // or CreateComObject mycom.myFunction(FunctionName); ShowMessage(FunctionName); end; [/code] [2006-10-13 10:19:29] sbreiler at gmx dot de Description: Please have a look at the code below. I also tried to use a Variant, which doesn't worked out for me. Also "$mycom->myFunction( &$FunctionName );" doesn't work. Tried with PHP version "5.2.0.0 RC6-dev" and "5.1.6.6" Reproduce code: --- $mycom = new COM('my.own'); settype($FunctionName,"String"); //$FunctionName = 'a'; // **doesn't work either $mycom->myFunction( $FunctionName ); /* VT_PTR [26] [out] --> VT_BSTR [8] */ var_dump($FunctionName); // '' or 'a'** Expected result: 'something' Actual result: -- '' or 'a' (when using "$FunctionName = 'a';") -- Edit this bug report at http://bugs.php.net/?id=39145&edit=1
#16263 [Com]: session.start() create new empty session file and not resume existing session
ID: 16263 Comment by: barts at time dot net dot my Reported By: kur at natur dot cuni dot cz Status: No Feedback Bug Type: Session related Operating System: ANY PHP Version: 4.3.0-dev New Comment: PHP 5.1.4 Windows NT SERVER 5.1 build 2600 Possible workarounds installed as mentioned in the thread. I also noticed that the session cookie is not updated when another pages is loaded that contains session_start(); This causes the session always to expire after its lifetime, where I expect the session to expire after the last session_start + lifetime. Previous Comments: [2006-12-02 05:00:24] michaellai2006 at yahoo dot com Same thing for 5.1.16 I tried other people's suggestion, did not work for me neither. Please give a workaround. [2006-12-02 04:51:44] failmore at yahoo dot com Similar problem happend to me. The following is my configuration: Apache 2.2.3, PHP 5.1.16 I tried three different browsers, IE, FireFox, Maxthon same error happens. I host the website on my local machine, Win XP Home, therefore, I try to access the site using http://localhost/testsite add default_charset = "iso-8859-1"; in php.ini, did not work set setting cookie_domain=localhost did not work set session.use_trans_sid on did not work. [2006-11-22 11:13:38] jclewley at netprospex dot com Try setting cookie_domain in php.ini to a period (.) followed by your domain. For example, ".google.com". The default typically tells PHP to use www.google.com which will cause problems if the user types google.com. [2006-11-16 18:24:33] tobias dot hug at alpinenet dot ch I've got the same problem with php 5.1.6. session data is not maintained between pages. If I add default_charset = "iso-8859-1"; in php.ini, everything works. [2006-11-15 18:58:29] william dot li dot 1983 at gmail dot com I got the same problem. Callin session.start() create a new session id and a corresponding file and session data are not maintained between pages. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16263 -- Edit this bug report at http://bugs.php.net/?id=16263&edit=1
#39941 [NEW]: Reflect team changes in credits.c
From: [EMAIL PROTECTED] Operating system: irrelevant PHP version: 5.2.0 PHP Bug Type: Unknown/Other Function Bug description: Reflect team changes in credits.c Description: Credits.c should reflect the changes of the documentation team (from where I resigned earlier) and the php.net website team (from where I resigned today). It should also credit Hannes Magnusson, who is very active in the website team nowadays. Here are the suggested changes. --- credits.c 2006-12-24 13:58:51.0 +0100 +++ credits-new.c 2006-12-24 13:59:54.0 +0100 @@ -108,7 +108,6 @@ php_info_print_table_start(); php_info_print_table_colspan_header(2, "PHP Documentation"); CREDIT_LINE("Authors", "Mehdi Achour, Friedhelm Betz, Antony Dovgal, Nuno Lopes, Philip Olson, Georg Richter, Damien Seguy, Jakub Vrana"); - CREDIT_LINE("Editor", "Gabor Hojtsy"); CREDIT_LINE("User Note Maintainers", "Mehdi Achour, Friedhelm Betz, Vincent Gevers, Aidan Lister, Nuno Lopes, Tom Sommer"); CREDIT_LINE("Other Contributors", "Previously active authors, editors and other contributors are listed in the manual."); php_info_print_table_end(); @@ -125,7 +124,7 @@ /* Website Team */ php_info_print_table_start(); php_info_print_table_header(1, "PHP Website Team"); - php_info_print_table_row(1, "Gabor Hojtsy, Colin Viebrock, Jim Winstead"); + php_info_print_table_row(1, "Hannes Magnusson, Colin Viebrock, Jim Winstead"); php_info_print_table_end(); } -- Edit bug report at http://bugs.php.net/?id=39941&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39941&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39941&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39941&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39941&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39941&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39941&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=39941&r=needscript Try newer version:http://bugs.php.net/fix.php?id=39941&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39941&r=support Expected behavior:http://bugs.php.net/fix.php?id=39941&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39941&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39941&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39941&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39941&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39941&r=dst IIS Stability:http://bugs.php.net/fix.php?id=39941&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39941&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39941&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39941&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=39941&r=mysqlcfg
#34297 [Asn->Fbk]: get_object_vars on COM object produces Apache error
ID: 34297 Updated by: [EMAIL PROTECTED] Reported By: csaba at alum dot mit dot edu -Status: Assigned +Status: Feedback Bug Type: COM related Operating System: win32 PHP Version: 5CVS-2005-08-31 Assigned To: wez New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: [2005-08-31 13:33:52] [EMAIL PROTECTED] Assigned to the maintainer. [2005-08-31 11:45:40] csaba at alum dot mit dot edu I just went to http://snaps.php.net and got the latest binaries: php5.1-win32-200508310630.zip The problem still exists for me as originally reported. Csaba [2005-08-29 16:47:53] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip [2005-08-29 16:22:01] csaba at alum dot mit dot edu Description: If I do get_object_vars on a COM object, the code hangs and eventually I get an Apache HTTP Server error message dialog telling me it's encountered an error and needs to close and would I like to submit a report. If the code should indeed generate an error, shouldn't I be able to trap for it rather than experience a hang? Csaba Gabor from Vienna Reproduce code: --- \n"; print "gettype of \$oWS: " . gettype($oWS) . "\n"; print " class of \$oWS: " . get_class($oWS) . "\n"; try { print ('(array)$oWS: '); $Arr = (array)$oWS; print_r ( $Arr ); } catch (Exception $e) { print "(array) casting error.\n"; } try { print ('get_objectvars($oWS): '); $Arr = get_object_vars($oWS); print_r ( $Arr ); } catch (Exception $e) { print "get_object_vars error."; } print "\n"; ?> Expected result: I expect to get one of: (1) an array of filled in, accessible properties/values. (2) an empty array as in the first try block (3) an error message from the catch block If you comment out the 5th line, as shown below, then you can see how it looks when the object is an instance of a class: // $oWS = new COM("WScript.Shell"); Actual result: -- The first try/catch block works fine, producing an empty array. It's the second one that hangs, producing the Apache error dialog (If I use php.exe I get the same error dialog except with CLI in the title bar). -- Edit this bug report at http://bugs.php.net/?id=34297&edit=1
#39939 [Fbk->Bgs]: Make with GD2 error
ID: 39939 Updated by: [EMAIL PROTECTED] Reported By: lendy dot chen at gmail dot com -Status: Feedback +Status: Bogus Bug Type: GD related Operating System: Linux AS4.0U2 PHP Version: 5.2.0 Assigned To: pajoye New Comment: Duplicate of 39940. Previous Comments: [2006-12-24 12:37:53] [EMAIL PROTECTED] The errors do not look like a ext/gd errors. What do you have in /usr/local/gd2? Why don't you use simply "--with-gd" which uses the bundled library (strongly recommended). [2006-12-24 06:54:32] lendy dot chen at gmail dot com Description: use same configure in php5.1.6 is success,but in php5.2.1,make error. ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl-dir=/usr/local/ssl --with-jpeg-dir=/usr/local/modules/jpeg6 --with-png --with-freetype-dir=/usr/local/modules/freetype --with-gd=/usr/local/gd2 --enable-trace-vars --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-sqlite-utf8 --enable-pdo --with-libxml-dir=/usr/local/libxml2 --enable-dba --with-zlib --enable-mbstring --with-iconv --enable-memory-limit --enable-sockets --enable-force-cgi-redirect --disable-debug --with-config-file-path=/etc --enable-fastcgi --enable-zip --enable-apc --enable-apc-mmap --enable-apc-sem ok make make error info: ext/apc/.libs/apc_fcntl.o(.text+0x51): In function `apc_fcntl_create': /usr/src/php-5.2.0/ext/apc/apc_fcntl.c:41: warning: the use of `mktemp' is dangerous, better use `mkstemp' ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function `zim_xmlreader_setSchema': /usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined reference to `xmlTextReaderSchemaValidate' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 not with --with-gd=/usr/local/gd2 is make success. Reproduce code: --- use same configure in php5.1.6 is success,but in php5.2.1,make error. ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl-dir=/usr/local/ssl --with-jpeg-dir=/usr/local/modules/jpeg6 --with-png --with-freetype-dir=/usr/local/modules/freetype --with-gd=/usr/local/gd2 --enable-trace-vars --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-sqlite-utf8 --enable-pdo --with-libxml-dir=/usr/local/libxml2 --enable-dba --with-zlib --enable-mbstring --with-iconv --enable-memory-limit --enable-sockets --enable-force-cgi-redirect --disable-debug --with-config-file-path=/etc --enable-fastcgi --enable-zip --enable-apc --enable-apc-mmap --enable-apc-sem ok make make error info: ext/apc/.libs/apc_fcntl.o(.text+0x51): In function `apc_fcntl_create': /usr/src/php-5.2.0/ext/apc/apc_fcntl.c:41: warning: the use of `mktemp' is dangerous, better use `mkstemp' ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function `zim_xmlreader_setSchema': /usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined reference to `xmlTextReaderSchemaValidate' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 not with --with-gd=/usr/local/gd2 is make success. Expected result: use same configure in php5.1.6 is success,but in php5.2.1,make error. ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl-dir=/usr/local/ssl --with-jpeg-dir=/usr/local/modules/jpeg6 --with-png --with-freetype-dir=/usr/local/modules/freetype --with-gd=/usr/local/gd2 --enable-trace-vars --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-sqlite-utf8 --enable-pdo --with-libxml-dir=/usr/local/libxml2 --enable-dba --with-zlib --enable-mbstring --with-iconv --enable-memory-limit --enable-sockets --enable-force-cgi-redirect --disable-debug --with-config-file-path=/etc --enable-fastcgi --enable-zip --enable-apc --enable-apc-mmap --enable-apc-sem ok make make error info: ext/apc/.libs/apc_fcntl.o(.text+0x51): In function `apc_fcntl_create': /usr/src/php-5.2.0/ext/apc/apc_fcntl.c:41: warning: the use of `mktemp' is dangerous, better use `mkstemp' ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function `zim_xmlreader_setSchema': /usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined reference to `xmlTextReaderSchemaValidate' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 not with --with-gd=/usr/local/gd2 is make success. Actual result: -- use same configure in php5.1.6 is success,but in php5.2.1,make error. ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl-dir=/usr/local/ssl
#39939 [Opn->Fbk]: Make with GD2 error
ID: 39939 Updated by: [EMAIL PROTECTED] Reported By: lendy dot chen at gmail dot com -Status: Open +Status: Feedback Bug Type: GD related Operating System: Linux AS4.0U2 PHP Version: 5.2.0 -Assigned To: +Assigned To: pajoye New Comment: The errors do not look like a ext/gd errors. What do you have in /usr/local/gd2? Why don't you use simply "--with-gd" which uses the bundled library (strongly recommended). Previous Comments: [2006-12-24 06:54:32] lendy dot chen at gmail dot com Description: use same configure in php5.1.6 is success,but in php5.2.1,make error. ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl-dir=/usr/local/ssl --with-jpeg-dir=/usr/local/modules/jpeg6 --with-png --with-freetype-dir=/usr/local/modules/freetype --with-gd=/usr/local/gd2 --enable-trace-vars --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-sqlite-utf8 --enable-pdo --with-libxml-dir=/usr/local/libxml2 --enable-dba --with-zlib --enable-mbstring --with-iconv --enable-memory-limit --enable-sockets --enable-force-cgi-redirect --disable-debug --with-config-file-path=/etc --enable-fastcgi --enable-zip --enable-apc --enable-apc-mmap --enable-apc-sem ok make make error info: ext/apc/.libs/apc_fcntl.o(.text+0x51): In function `apc_fcntl_create': /usr/src/php-5.2.0/ext/apc/apc_fcntl.c:41: warning: the use of `mktemp' is dangerous, better use `mkstemp' ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function `zim_xmlreader_setSchema': /usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined reference to `xmlTextReaderSchemaValidate' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 not with --with-gd=/usr/local/gd2 is make success. Reproduce code: --- use same configure in php5.1.6 is success,but in php5.2.1,make error. ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl-dir=/usr/local/ssl --with-jpeg-dir=/usr/local/modules/jpeg6 --with-png --with-freetype-dir=/usr/local/modules/freetype --with-gd=/usr/local/gd2 --enable-trace-vars --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-sqlite-utf8 --enable-pdo --with-libxml-dir=/usr/local/libxml2 --enable-dba --with-zlib --enable-mbstring --with-iconv --enable-memory-limit --enable-sockets --enable-force-cgi-redirect --disable-debug --with-config-file-path=/etc --enable-fastcgi --enable-zip --enable-apc --enable-apc-mmap --enable-apc-sem ok make make error info: ext/apc/.libs/apc_fcntl.o(.text+0x51): In function `apc_fcntl_create': /usr/src/php-5.2.0/ext/apc/apc_fcntl.c:41: warning: the use of `mktemp' is dangerous, better use `mkstemp' ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function `zim_xmlreader_setSchema': /usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined reference to `xmlTextReaderSchemaValidate' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 not with --with-gd=/usr/local/gd2 is make success. Expected result: use same configure in php5.1.6 is success,but in php5.2.1,make error. ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl-dir=/usr/local/ssl --with-jpeg-dir=/usr/local/modules/jpeg6 --with-png --with-freetype-dir=/usr/local/modules/freetype --with-gd=/usr/local/gd2 --enable-trace-vars --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-sqlite-utf8 --enable-pdo --with-libxml-dir=/usr/local/libxml2 --enable-dba --with-zlib --enable-mbstring --with-iconv --enable-memory-limit --enable-sockets --enable-force-cgi-redirect --disable-debug --with-config-file-path=/etc --enable-fastcgi --enable-zip --enable-apc --enable-apc-mmap --enable-apc-sem ok make make error info: ext/apc/.libs/apc_fcntl.o(.text+0x51): In function `apc_fcntl_create': /usr/src/php-5.2.0/ext/apc/apc_fcntl.c:41: warning: the use of `mktemp' is dangerous, better use `mkstemp' ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function `zim_xmlreader_setSchema': /usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined reference to `xmlTextReaderSchemaValidate' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 not with --with-gd=/usr/local/gd2 is make success. Actual result: -- use same configure in php5.1.6 is success,but in php5.2.1,make error. ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl-dir=/usr/local/ssl --with-jpeg-dir=/usr/local/modules/jpeg6 --with-png --with-freetype-dir=/usr/local/modules/freetype --with-gd=/us
#37274 [Opn->Fbk]: Array style COM property access
ID: 37274 Updated by: [EMAIL PROTECTED] Reported By: tp at synolon dot gr -Status: Open +Status: Feedback Bug Type: COM related Operating System: Windows XP Pro PHP Version: 5.1.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: [2006-12-14 20:47:59] lee at dark-circuit dot com Bug still exists in 5.2.0 :( I have confirmed the bug is in both 5.1.3 and 5.2.0 [2006-08-18 08:44:11] tp at synolon dot gr I'm happy to see that at least there are others interested in COM communication through PHP. I think that more work has to be done for this module cause brings a bridge for the open source community to the windoze world (it is usefull for some bussiness apps...). For example I could manage to run the code I presented through java using IBM COM bridge and worked OK. But is a pity to run a jsp site just because the COM PHP implemntation is buggy. Also I find it TOO much (in this case...) to call java code through PHP to get this job done... not to mention that my service provider won't support the php to java bridge. We love PHP so please give a look at that bug! [2006-08-17 18:30:02] phpbugs at mike-c dot com I recently started playing around with COM objects in PHP, and this bug has been causing me a huge headache. I've read several reports, including one which was marked fixed, so I did some research... The following syntax works on PHP 5.0.4: $Obj->Attribute['Name'] = $Val; However on PHP 5.0.5, it throws an exception: Fatal error: Uncaught exception 'com_exception' with message 'Error [0x8002000e] Invalid number of parameters. This therefore appears to be a regression dating back to apr/may 05. [2006-05-26 06:40:05] tp at synolon dot gr For the '$': Sorry, I misstyped it, but only here. In my original code this is OK. Unfortunately this is not the problem. I wonder if the problem is that the array style property returns an object and not a simple data type. When bug 28161 was fixed I saw that it was related with array style properties that could be assigned a value directly (eg a string, a number etc). But what about object COM properties? [2006-05-25 14:46:46] dtyschenko at soft-ukraine dot com $this->kbmDetail->Field[ fieldname ]->Value = $fieldvalue; Is it okay, that you type filedname without '$' ??? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/37274 -- Edit this bug report at http://bugs.php.net/?id=37274&edit=1
#34440 [Asn->Fbk]: COM Error confuse with [] ()
ID: 34440 Updated by: [EMAIL PROTECTED] Reported By: anecdote at yahoo dot com -Status: Assigned +Status: Feedback Bug Type: COM related Operating System: win32 PHP Version: 5CVS-2005-09-11 Assigned To: wez New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip should be fixed in CVS - please try your custom COM object Previous Comments: [2006-11-24 09:33:03] june2004 at yahoo dot com 1 year ago, nothing changed - -' PHP Team...please tell me for the other ways to avoid this problem. No seriously talking about this bug on internet. Now I use 5.2.0 everything are OK but this problem. - Thank you PHP Team for making PHP better. [2006-04-18 13:53:45] srabol at mail dot tele dot dk The erorr is still in version 5.1.2 If you have the fix, why not implement it? Do you really want all to move to .NET ? [2005-11-25 14:29:37] [EMAIL PROTECTED] Send a patch to fix it if you're so interested. [2005-11-25 14:02:58] yummie007 at yahoo dot com Why php team don't fix this bug in 5.1.0 This bug cause php can not work with many COM Now my company moved all projects to ASP/ASP.NET Abominable Bug of PHP Fixed a bug to make a new bug ? [2005-09-12 23:25:28] [EMAIL PROTECTED] Assigned to the maintainer of COM, Wez, have fun. :) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34440 -- Edit this bug report at http://bugs.php.net/?id=34440&edit=1
#33734 [Asn->Csd]: Something strange with COM Object
ID: 33734 Updated by: [EMAIL PROTECTED] Reported By: tommy_wei at hotmail dot com -Status: Assigned +Status: Closed Bug Type: COM related Operating System: win32 PHP Version: 5CVS-2005-07-17 (dev) Assigned To: wez New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2005-12-17 05:46:29] way dot sun at bellsouth dot com I first noticed this change, () vs [], in 5.0.5. 5.0.4 uses (), but 5.0.5 onwards uses []. Thanks [2005-07-18 14:26:03] tommy_wei at hotmail dot com Thank you so much "[EMAIL PROTECTED]" your answer is very nice...listen carefully in the problem and find out why. I have no any Oleview tool but, I get an idea which make the same result, you can use your Oleview tool to view something you want. Try this code...it's well known COM Object Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=".dirname(__FILE__)."\\".basename("Northwind.mdb")); $sql="Select * From Customers"; $rs->Open($sql,$conn,1,3); echo "First Record : ".$rs[1]->Name."=".$rs->Fields->Item[1]; $rs->Close(); $conn->Close(); unset($conn,$rs); ?> //MS Access XP 2002 //MDAC 2.8 --- Result From 5.0.4 First Record : CompanyName=Alfreds Futterkiste --- Result From 5.1.0b3 & 5.1.0Dev200507171830 Fatal error: Uncaught exception 'com_exception' with message 'Error [0x8002000e] Invalid number of parameters. ' in D:\Project\PHP\test.php:7 Stack trace: #0 D:\Project\PHP\test.php(7): unknown() #1 {main} thrown in D:\Project\PHP\test.php on line 7 With catch exception Fatal error: Error [0x8002000e] Invalid number of parameters. At line 7 >> echo "First Record : ".$rs[1]->Name."=".$rs->Fields->Item[1]; The point is >> $rs->Fields->Item[1]; --- Hope this may help...thank you. [2005-07-18 02:43:09] [EMAIL PROTECTED] I'd like to see the IDL for the methods you are using there, and find out why it stopped working in 5.1. The OleView tool is the best bet for this; if you don't have it, the com_print_typeinfo() function in PHP is better than nothing. [2005-07-18 02:26:53] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. [2005-07-17 17:00:03] tommy_wei at hotmail dot com Ok you are right... You said -> The long answer is that atm we cannot support the ()= syntax and offer the []= as an alternative But why this code doesn't work with PHP 5.1.0b3 & The lastest CVS 5.1.0Dev...it works for PHP 5.0.4 IndexOf($user); $target=$com->Items[$index];//return user object $target->Password="password"; $com->Items[$index]=$target;//to update user's information unset($com); }catch(Exception $exp){ echo $exp->getMessage(); } ?> At line >> $target=$com->Items[$index]; Error is >> [0x8002000e] Invalid number of parameters. Any idea ? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33734 -- Edit this bug report at http://bugs.php.net/?id=33734&edit=1
#39596 [Asn->Csd]: VT_ARRAY
ID: 39596 Updated by: [EMAIL PROTECTED] Reported By: tim dot pickup at gmail dot com -Status: Assigned +Status: Closed Bug Type: COM related Operating System: Windows 2003 PHP Version: 5.2.0 Assigned To: wez New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2006-11-22 21:43:22] tim dot pickup at gmail dot com Description: Hi, This used to working in PHP4 and now does not work in PHP5: $binding_string = array('aaa','bbb','ccc'); $v = new VARIANT( $binding_string, VT_ARRAY ); I have tried a number of changes to try to get around this but cant find one. Reproduce code: --- $binding_string = array('aaa','bbb','ccc'); $v = new VARIANT( $binding_string, VT_ARRAY ); Actual result: -- Fatal error: Uncaught exception 'com_exception' with message 'Variant type conversion failed: Type mismatch... -- Edit this bug report at http://bugs.php.net/?id=39596&edit=1
#37588 [Opn->Csd]: COM Property propputref converts to PHP function and can't be accesed
ID: 37588 Updated by: [EMAIL PROTECTED] Reported By: dtyschenko at soft-ukraine dot com -Status: Open +Status: Closed Bug Type: COM related Operating System: Windows XP SP2 PHP Version: 5.1.4 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2006-05-25 09:38:58] dtyschenko at soft-ukraine dot com Description: When COM property is marked with propputref it looks like function in com_print_typeinfo and can't be accessed by: $a->property = $b or $a->property($b) I'm just get com_exception with message 'Error [0x80020003] Member not found.' Reproduce code: --- Open("C:\\1.wav", 3, false); $Engine->AudioOutputStream = $File; // com_exception $Engine->Speak("Hello World!", 0); $File->Close(); unset($File); unset($Engine); ?> -- Edit this bug report at http://bugs.php.net/?id=37588&edit=1
#33386 [Asn->Csd]: ScriptControl only sees last function of class
ID: 33386 Updated by: [EMAIL PROTECTED] Reported By: csaba at alum dot mit dot edu -Status: Assigned +Status: Closed Bug Type: COM related Operating System: Win XP Pro PHP Version: 5CVS-2005-06-20 Assigned To: wez New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2005-06-17 16:47:53] csaba at alum dot mit dot edu Sigh...the expected results are actually: func one func one func two func two func one func two [2005-06-17 16:38:14] csaba at alum dot mit dot edu Description: When I use a PHP class with the MSScriptControl.ScriptControl object and want to invoke a function in the class from within the ScriptControl, I always get the last function from the class regardless of which one I try to invoke (provided I've used the name of ANY function in the class - see note on actual result). If I implement the same thing in VB5 (VBScript with VB5CCE, actually), this problem does not happen. The code for it is also short and I am happy to provide it, if it would be useful Csaba Gabor from Vienna Reproduce code: --- Language = "VBScript"; // the object, within the script control, is referred to as tFA // that final true means that the tFA. may be omitted within the script control $oScript->AddObject ("tfA", $ciTF, true); foreach (array(1,2) as $i) { $oScript->ExecuteStatement ("tfA.func$i"); $oScript->ExecuteStatement ("func$i"); } $oScript->AddObject ("tfB", $ciTF); foreach (array(1,2) as $i) $oScript->ExecuteStatement ("tfB.func$i"); ?> Expected result: I expect to see: func one func two func one func two func one func two Actual result: -- I see func two repeated 6 times. In other words, regardless of what function I name, only the last defined function in the PHP class is executed, which is incorrect. However, if I attempt to call a function that isn't there, such as $oScript->ExecuteStatement ("tfA.func3"); then PHP will (correctly) throw an error This to me says that PHP gets as far as determining whether the function is there or not, but then it messes up on the indirection. -- Edit this bug report at http://bugs.php.net/?id=33386&edit=1