Re: Bug #13599 Updated: drops characters in variable file name

From: Date: Thu, 11 Oct 2001 07:34:38 +0000
Subject: Re: Bug #13599 Updated: drops characters in variable file name
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67750@lists.php.net to get a copy of this message
Hello, Is this an issue for 4.0.7 too? If it is, then it should be marked as 'Critical' IMO. Derick On 11 Oct 2001 phanto@php.net wrote: > ID: 13599 > Updated by: phanto > Reported By: alain@sonic.net > Status: Open > Bug Type: COM related > Operating System: win98 > PHP Version: 4.0CVS-2001-10-08 > New Comment: > > these are the implications of an attempt to make the string functions binary safe :) will be > fixed soon. > > Previous Comments: > ------------------------------------------------------------------------ > > [2001-10-08 12:04:14] alain@sonic.net > > <?php > #Instantiate Excel > $ex = new COM("Excel.sheet") or Die ("Did not instantiate > Excel"); > $ex->Application->Visible = 1; #Make Excel visible. > $workbook="test.xls"; > $pathin="c:/"; > $sheet="sheet1"; > #Load the workbook > $filename= $pathin.$workbook; > print $filename; > # $file=New Variant($filename,VT_BSTR); #This doesn't work either > (replacing $filename by $file) > $wkb = $ex->application->Workbooks->Open($filename) or > Die ("Did not open $filename"); > #Activate the sheet > $sheets = $wkb->Worksheets($sheet) or Die ("Unable to activate $sheet"); > > ?> > Produces error message: > c:/test.xls > Warning: Invoke() failed: Exception occurred. Source: Microsoft Excel Description: > 'c:/tes.xls' could not be found. Check the spelling of the file name, and verify that the > file location is correct. If you are trying to open the file from your list of most recently used > files on the File menu, make sure that the file has not been renamed, moved, or deleted. in > c:\geolink\testbad.php on line 12 > Did not open c:/test.xls > Note: If $workbook="testxx.xls" it will open test.xls ... > But will produce the error below on the 'activate the sheet' code line, (related or > not to the file name error, maybe a second bug?) > Error in php_OLECHAR_to_char() in c:\geolink\testbad.php on line 15 > > Setup: win 98 Apache 1.3x as CGI. CVS source compiled at php4win.com on 10-04-2001 > > > ------------------------------------------------------------------------ > > > > Edit this bug report at > http://bugs.php.net/?id=13599&edit=1 > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > Derick Rethans --------------------------------------------------------------------- PHP: Scripting the Web - www.php.net - derick@php.net SRM: Site Resource Manager - www.vl-srm.net ---------------------------------------------------------------------

« previous php.dev (#67750) next »