[PHP-DEV] Bug #11811 Updated: Cannot use ImageCopyResampled(), wrong GD version Reported
ID: 11811 Updated by: rasmus Reported By: [EMAIL PROTECTED] Status: Open Bug Type: GD related Operating system: PHP Version: 4.0.6 Assigned To: Comments: Did you remove the config.cache file? Previous Comments: --- [2001-06-30 15:12:37] [EMAIL PROTECTED] I previously ran GD 1.8.3 with PHP 4.0.5, then upgraded to GD 2.0.1 and PHP 4.0.6 to take advantage of ImageCopyResampled(). However, configure is not setting #define HAVE_LIBGD20 no matter what I do. I have even removed all reminants of GD 1.8.4, but still to no avail. Here's all the relevant information I can provide from phpinfo(): [Configure Command] './configure' '--with-xml' '--with-pgsql=/home/pgsql' '--with-jpeg' '--with-jpeg-dir=/home/matt/Packages/jpeg-6b' '--with-t1lib' '--with-gd=/home/matt/Packages/gd-2.0.1' '--with-imap' '--with-pspell' '--with-swf' '--with-zlib' '--enable-ftp' '--with-pdflib=/usr/local/lib' '--with-apxs' '--with-gdbm' '--with-mysql' '--enable-filepro' '--enable-dbx' '--enable-bcmath' '--enable-trans-sid' '--enable-yp' '--with-mcal=/usr/local/mcal' [gd] GD Support: enabled GD Version: 1.6.2 or higher T1Lib Support: enabled JPG Support: enabled WBMP Support: enabled --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11811edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10177 Updated: IIS 5.0 can not start with enabled mssql70 extension
ID: 10177 Updated by: fmk Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: MSSQL related Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: Install the client tools for MSSQL Server before using the extension. The client tools can be installed from the MSSQL Server CD or by copying the file ntwdblib.dll to \winnt\system32. Previous Comments: --- [2001-04-05 05:29:46] [EMAIL PROTECTED] Steps I do: 1. PHP is working as an ISAPI without mssql70 extension. In php.ini: ;extension=php_mssql70.dll 2. Set in php.ini mssql70 extension: extension=php_mssql70.dll 3. When I try to restart World Wide Web Publishing Service it displays an error message - Service cannot be started and its status goes 'Starting' 4. If I disable mssql70 extension in php.ini and reboot computer, PHP works again. --- [2001-04-05 05:02:35] [EMAIL PROTECTED] Please provide more information, about what error's you get, the output of your phpino(); (on a website if that's possible) and your php.ini file (and the location on your filesystem of it). --- [2001-04-05 03:42:20] [EMAIL PROTECTED] --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10177edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11811 Updated: Cannot use ImageCopyResampled(), wrong GD version Reported
ID: 11811 Updated by: derick Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: GD related Operating system: PHP Version: 4.0.6 Assigned To: Comments: Can you email me the config.log file? And are you absolutely sure all old gd header files are removed? Derick Previous Comments: --- [2001-06-30 15:19:08] [EMAIL PROTECTED] Did you remove the config.cache file? --- [2001-06-30 15:12:37] [EMAIL PROTECTED] I previously ran GD 1.8.3 with PHP 4.0.5, then upgraded to GD 2.0.1 and PHP 4.0.6 to take advantage of ImageCopyResampled(). However, configure is not setting #define HAVE_LIBGD20 no matter what I do. I have even removed all reminants of GD 1.8.4, but still to no avail. Here's all the relevant information I can provide from phpinfo(): [Configure Command] './configure' '--with-xml' '--with-pgsql=/home/pgsql' '--with-jpeg' '--with-jpeg-dir=/home/matt/Packages/jpeg-6b' '--with-t1lib' '--with-gd=/home/matt/Packages/gd-2.0.1' '--with-imap' '--with-pspell' '--with-swf' '--with-zlib' '--enable-ftp' '--with-pdflib=/usr/local/lib' '--with-apxs' '--with-gdbm' '--with-mysql' '--enable-filepro' '--enable-dbx' '--enable-bcmath' '--enable-trans-sid' '--enable-yp' '--with-mcal=/usr/local/mcal' [gd] GD Support: enabled GD Version: 1.6.2 or higher T1Lib Support: enabled JPG Support: enabled WBMP Support: enabled --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11811edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #9855 Updated: Return column data with correct type
ID: 9855 Updated by: fmk Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: MSSQL related Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: Update to php4.0.6, and you will find what you are asking for. The setting mssql.compatability_mode in php.ini can be used to specify how data are returned. mssql.compatability_mode = Off Returns data as php types mssql.compatability_mode = On Returns all data ass strings. Previous Comments: --- [2001-03-20 00:04:07] [EMAIL PROTECTED] Suggestion: Add new data retrieval functions (or extend mssql_fetch_array and mssql_fetch_row) to return each column in a type that matches the underlying database column type instead of the always as type string. Also, return columns that are NULL as PHP's null type (instead of boolean/false). Two questions - is this the proper place to submit suggestions, and if so should this also be submitted to the general 'database functions' category (I know PHP's ODBC functions exhibit the same behavior)? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9855edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #9854 Updated: Empty strings get returned as single spaces
ID: 9854 Updated by: fmk Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: MSSQL related Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: Handling of NULL columns is fixed in php 4.0.6 Previous Comments: --- [2001-03-19 23:45:28] [EMAIL PROTECTED] Add'l info: Web Server: Win2000 Server SP1 IIS 5.0 PHP 4.0.4pl1 Database Server: WinNT SP6 MSSQL 7.0 --- [2001-03-19 23:42:49] [EMAIL PROTECTED] mssql_fetch_array (and mssql_fetch_row) return a single space for columns that contain an empty string (as opposed to columns that contain NULL). --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9854edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #9438 Updated: Error retrieving image field from MSSQL database
ID: 9438 Updated by: fmk Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: MSSQL related Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: Handling of binary data is changed for php4.0.6. Please update and try again. Previous Comments: --- [2001-02-24 20:27:09] [EMAIL PROTECTED] When I try to retrieve image field from MSSQL7 database I get PHP has encountered an Access Violation at 77FCA9EA and all PHP engine becomes unstable after this. The script is very simple: ? include(msdb.php); $id=$HTTP_GET_VARS[id]; $rs=mssql_query(select Image from SpecBannerData where SpecBannerID= . $id,$conn); $arr=mssql_fetch_row($rs); if ($arr) { header( Content-type: image/jpg); echo $arr[0]; } ? msdb.php: ? $conn=mssql_connect(127.0.0.1,sa,); if (!$conn) { echo (Can not connect to the database); } if (!mssql_select_db(metasearch,$conn)) { echo (Can not connect to the database); } ? I'm quite new in PHP, but I met some other people report the same problems in PHP-related forums. I used only precompiled PHP modules downloaded from php.net. Best regards, Leonid Freidin --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9438edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10889 Updated: mssql_fetch_array - IDENTITY values returned as string with padded NULL chars
ID: 10889 Updated by: fmk Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: MSSQL related Operating system: PHP Version: 4.0.5 Assigned To: Comments: Update to php 4.0.6, and use the php.ini setting mssql.compatability_mode = Off to specify that you will have all data returned as php types. Previous Comments: --- [2001-05-15 17:03:54] [EMAIL PROTECTED] OS = Windows 2000 Server = IIS 5.0 Database = SQL Server 7 PHP = 4.0.5 To reproduce 1. Create a table as such: CREATE TABLE table1 ( row_id NUMERIC(9,0) IDENTITY, col1 INT NOT NULL, col2 INT NULL, col3 VARCHAR(25) NULL, PRIMARY KEY(row_id) ) GO 2. Insert a row: INSERT INTO table1 (col1) VALUES(1) GO 3. Now fetch that row ?php $hostname = your hostname here; $username = your username here; $password = your password here; $dbName = your database name here; // Connect $connectionID = mssql_connect($hostname, $username, $password); $retval = mssql_select_db($dbName); // Query $query = SELECT row_id, col1, col2, col3 from table1 $queryID = mssql_query($query, $connectionID) // Fetch fields $fields = mssql_fetch_array($queryID); list($row_id, $col1, $col2, $col3) = $fields; echo type = . gettype($row_id) . br; echo strlen($row_id) = . strlen($row_id) . br; echo bin2hex($row_id) . br; mssql_close($connectionID); ? 3. Results Did yours match mine? My result from bin2hex is 31 The character 1, followed by 19 nulls! --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10889edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #7088 Updated: mssql_fetch_row
ID: 7088 Updated by: fmk Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: MSSQL related Operating system: PHP Version: 4.0.2 Assigned To: Comments: This is not a bug in the php extension, but a limmitation in the libraries provides by Microsoft. Previous Comments: --- [2000-11-10 01:36:49] [EMAIL PROTECTED] Use TEXT can fetch larger then 255 chars.But it still not be able to fetch as long as 2000 chars field. --- [2000-10-20 16:30:27] [EMAIL PROTECTED] The DB libray from Microsoft does not support the NCHAR datatype. is is converted to and handled as a CHAR with the maximum length of 255 bytes. Use TEXT type. it will work. I'll report the error to Microsoft. --- [2000-10-08 12:34:09] [EMAIL PROTECTED] when fetch a char field,it can not fetch more than 255 char in a field. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7088edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #8398 Updated: Php can not get any message from RAISEERROR
ID: 8398 Updated by: fmk Reported By: [EMAIL PROTECTED] Status: Open Bug Type: MSSQL related Operating system: PHP Version: 4.0.4 Assigned To: Comments: Could you provide some saple code. When I do a mssql_query(RAISERROR ('Test', 15, 1) with nowait); I get the error message right away. Previous Comments: --- [2000-12-24 03:24:08] [EMAIL PROTECTED] Even I try Rasinerrorwith nowait the error_level is bigger that 10. The message will apear as php warning when scripts end. Same level error generated by server will be retrieved at once. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8398edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #8642 Updated: mssql fetch array bug
ID: 8642 Updated by: fmk Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: MSSQL related Operating system: PHP Version: 4.0.4 Assigned To: Comments: This error can not be reproduces with php 4.0.6. PLease update to the latest version. Previous Comments: --- [2001-01-12 16:06:25] [EMAIL PROTECTED] reclassifying --- [2001-01-10 16:12:26] [EMAIL PROTECTED] If you run mssql_fetch_array on the same table more than once the script will never finish. If you use mssql_fetch_row is works fine. ? $sql1 = select price from vw_items where item like '30482-__' order by item; $result1 = mssql_query($sql1); while ($row1 = mssql_fetch_array($result1)) { $price = $row1[price]; echo $$price; } mssql_free_result($result1); Echo NEW ONE; $sql2 = select price from vw_items where item like '30403-__' order by item; $result2 = mssql_query($sql2); while ($row2 = mssql_fetch_array($result2)) { $price = $row2[price]; echo $$price; } mssql_free_result($result2); ? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8642edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11796 Updated: get_meta_tags doesn't work when the title tag consists of single quote
ID: 11796 Updated by: elixer Reported By: [EMAIL PROTECTED] Old-Status: Assigned Status: Closed Bug Type: Unknown/Other Function Operating system: PHP Version: 4.0.5 Assigned To: elixer Comments: Fixed in latest CVS. Thank you for your report. Previous Comments: --- [2001-06-30 11:35:21] [EMAIL PROTECTED] I'll take this one. --- [2001-06-29 13:27:52] [EMAIL PROTECTED] Reproduced with latest CVS. --- [2001-06-29 03:18:17] [EMAIL PROTECTED] get_meta_tags will get nothing when this statics file is used.(please see the code down there) Only when the single quote inside the title tag removed, then the meta will be retrieved. I have tried to use this code inside PHP Version 4.0.4, and it works. Does anyone has any clue about it? html head TITLESanmina acquires Alcatel's manufacturing operations in Texas/TITLE META NAME=VERSION CONTENT=2.1/ META NAME=ISSUE CONTENT=121345/ META NAME=STARTDATE CONTENT=27-JUN-2001/ /head /html Thanks. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11796edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] mirror php and zend cvs trees.
hi, i need to maintain a local mirror of php as well as zend. i've tried rsyncing from rsync://rsync.php.net/php4 but all i have is a checked out version the source, no ,v files. i've tried using cvsup against CVSup.php.net as well as cvs.php.net and i immediately get connection refused. so how does one go about mirror php's cvs? as far as zend go, when other have asked the same question in the past responses were all something to the effect of doing a cvs checkout from zend's cvs server, but no solution for actually mirror the cvs tree. is anyone else doing this? john. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11811 Updated: Cannot use ImageCopyResampled(), wrong GD version Reported
ID: 11811 Updated by: derick Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: GD related Operating system: PHP Version: 4.0.6 Assigned To: Comments: User fixed it himself. Seemed some gd strangeness. Previous Comments: --- [2001-06-30 16:14:02] [EMAIL PROTECTED] Upon examining the config.log file, I discovered that configure was ignoring the /home/matt/Packages/gd-2.0.1/libgd.so file, and instead attempting to link with /lib/libgd.a. Checking the Makefile for gd-2.0.1, I found that it does not (by default) produce a libgd.a. By running 'make libgd.a' for gd-2.0.1, then deleting PHP-4.0.6's config.cache, then running a make clean;make all, I was able to fix the problem. Thanks for the quick response. I apologise for not looking further into this issue myself. --- [2001-06-30 15:23:05] [EMAIL PROTECTED] Can you email me the config.log file? And are you absolutely sure all old gd header files are removed? Derick --- [2001-06-30 15:19:08] [EMAIL PROTECTED] Did you remove the config.cache file? --- [2001-06-30 15:12:37] [EMAIL PROTECTED] I previously ran GD 1.8.3 with PHP 4.0.5, then upgraded to GD 2.0.1 and PHP 4.0.6 to take advantage of ImageCopyResampled(). However, configure is not setting #define HAVE_LIBGD20 no matter what I do. I have even removed all reminants of GD 1.8.4, but still to no avail. Here's all the relevant information I can provide from phpinfo(): [Configure Command] './configure' '--with-xml' '--with-pgsql=/home/pgsql' '--with-jpeg' '--with-jpeg-dir=/home/matt/Packages/jpeg-6b' '--with-t1lib' '--with-gd=/home/matt/Packages/gd-2.0.1' '--with-imap' '--with-pspell' '--with-swf' '--with-zlib' '--enable-ftp' '--with-pdflib=/usr/local/lib' '--with-apxs' '--with-gdbm' '--with-mysql' '--enable-filepro' '--enable-dbx' '--enable-bcmath' '--enable-trans-sid' '--enable-yp' '--with-mcal=/usr/local/mcal' [gd] GD Support: enabled GD Version: 1.6.2 or higher T1Lib Support: enabled JPG Support: enabled WBMP Support: enabled --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11811edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11812 Updated: mail function
ID: 11812 User Update by: [EMAIL PROTECTED] Status: Suspended Bug Type: Feature/Change Request Operating system: Win ME PHP Version: 4.0.6 Description: mail function ok thanks. ill work around it until it is fixed Previous Comments: --- [2001-06-30 16:22:25] [EMAIL PROTECTED] This is hardcoded in the Windows mail sending code. This will be addressed as soon as it gets rewritten. Derick --- [2001-06-30 16:15:59] [EMAIL PROTECTED] I'm running an smtp server on my computer but it is on port 26 not 25. I tried putting 127.0.0.1:26 at the smtp server in php.ini but it failed. Why doesn't php support ports other than 25? Thanks. --- Full Bug description available at: http://bugs.php.net/?id=11812 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11810 Updated: unable to load dynamic library
ID: 11810 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: *Install and Config Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: For example for Oracle modules, you need to have the oracle client libs in your system for them to work. Previous Comments: --- [2001-06-30 14:58:30] [EMAIL PROTECTED] when i test whether the PHP work or not with the test.php with code ?phpinfo()? , it will show the error message box. i.e unable to load dynamic library PATH/FILE NAME . the module can not be found. I'm sure that the path of all .dll files are right. PATH = C:PHPextionsions FILE NAME = php_ifx.dll php_mssql65.dll php_oci8.dll php_oracle.dll php_sybase_ct.dll The test.php is certainly in the wwwroot folder. Actually I have tried all the version but all can't work. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11810edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #8398 Updated: Php can not get any message from RAISEERROR
ID: 8398 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: MSSQL related Operating system: PHP Version: 4.0.4 Assigned To: Comments: Previous Comments: --- [2000-12-24 03:24:08] [EMAIL PROTECTED] Even I try Rasinerrorwith nowait the error_level is bigger that 10. The message will apear as php warning when scripts end. Same level error generated by server will be retrieved at once. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8398edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11813: ImageGammaCorrect no longer works
From: [EMAIL PROTECTED] Operating system: Win NT 4.0 PHP version: 4.0.6 PHP Bug Type: *Graphics related Bug description: ImageGammaCorrect no longer works A script that worked in PHP 4.0.4 no longer works in PHP 4.0.6 (with the php_gd.dll bundled with the Win32 binaries). Here's a snippet: $srcImgName = SWD2.jpg; $dstImgName = gam_ . $srcImgName; $srcImage = ImageCreateFromJPEG( $srcImgName ); ImageGammaCorrect( $srcImage, 1.8, 2.2 ); ImageJPEG( $srcImage, $dstImgName ); No errors are produced, and the new image is created but it is identical to the original -- no gamma correction has occurred. -- Edit Bug report at: http://bugs.php.net/?id=11813edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11814: ImageCreate not backward compatible
From: [EMAIL PROTECTED] Operating system: Win NT 4.0 PHP version: 4.0.6 PHP Bug Type: *Graphics related Bug description: ImageCreate not backward compatible This script worked fine in 4.0.4, but produces a bad color-shift in 4.0.6: $srcImage = ImageCreateFromJPEG( $srcImgName ); $dstImage = ImageCreate( $dstWidth, $dstHeight ); ImageCopyResized($dstImage, $srcImage, 0, 0, 0, 0, $dstWidth, $dstHeight, $srcWidth, $srcHeight); ImageJPEG( $dstImage, $dstImgName ); Using the new 4.0.6 function ImageCreateTrueColor() instead of ImageCreate() on line 2 fixes the problem. I wanted to let you know about it in case the underlying changes in GD that caused this problem might cause other similar problems. It might be useful to return ImageCreate to its previous functionality and add an ImageCreatePalette to go with ImageCreateTrueColor. Just a thought. Thanks. -- Edit Bug report at: http://bugs.php.net/?id=11814edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] switch, equality and preg_match
I encountered a problem where the result of a preg_match was FALSE. This was fed into a switch statement - and I believe PHP executed the the wrong case section. I've tracked this down to preg_match not really returning FALSE combined with SWITCH executing the first case statement always on either a numeric 0 or BOOLEAN TRUE. As a consequence of auto type conversion, you can't mix STRING/NUMERIC/BOOLEAN within a switch. And with the preg_match issue, you can't assume all input into your switch will be of one TYPE (BOOLEAN). Aside from changing functions to return real booleans 1. Should type conversion be turned off inside switch() ? 2. If 0 == FALSE then why 0 == ANYTHING ? Chris ? /* auto type conversion is the root of my switch problem */ if (0 == ONE) echo one\n; /* TRUE */ if (1 == TWO) echo two\n; /* FALSE */ if (TRUE == THREE) echo three\n;/* TRUE */ if (FALSE == FOUR) echo four\n; /* FALSE */ if (TRUE == 0) echo hopefully not\n; function preg_false() { return(preg_match(/no/, dXiuehXX)); } /* note the difference between FALSE and preg_false() */ // $match = TRUE; /* prints alpha always */ // $match = 0; /* prints alpha always */ // $match = FALSE; /* prints gamma section */ $match = preg_false(); /* prints alpha always */ if(is_bool($match) == TRUE) echo match is boolean\n; switch($match) { case ALPHA: echo hmm.. alpha\n; break; case BETA: echo hmm.. beta\n; break; case 0: echo hmm.. gamma\n; break; case TRUE: echo hmm.. TRUE\n; break; case FALSE: echo hmm.. FALSE\n; break; } ? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11815: ASP/ColdFusion Application type freature
From: [EMAIL PROTECTED] Operating system: all PHP version: 4.0.6 PHP Bug Type: Feature/Change Request Bug description: ASP/ColdFusion Application type freature I'd like PHP to have a feature that behaves similar to ASPs Application (global.asa) file. For example if I want to store the sitemap in a database to generate a navigation menu it's unneccessary to query the database upon every request, instead I'd like to store that informatoin in a php-application-wide storage (Maybe $PHP_APPLICATION_VARS[] array). I can see it could behave similar to the session functions. When session functions are shared between requests, the application is shared between requests. To do this, you could start an application with: application_start(name); I've not been thinking much about security, but I reckon it should not be possible to hijack an application, therefore there needs to be a (filebased) system that determines which files can be within an application. Maybe with a path? like: application_start(name, /path/to/where/my/files/are); which means that all files have to be within that folder or in it. There should also be a way to determine if the application is started or not, this to run the code upon start. Like; if(!application_exsists(name)) { // This code is being run when the application starts application_start(name, /path/to/files/); } This would reduce server load and eliminate hacks in this area. Comments? Cheers, /Jocke Selin - jocke.selincite.com / [EMAIL PROTECTED] -- Edit Bug report at: http://bugs.php.net/?id=11815edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #7881 Updated: sybase-ct does not report server errors
ID: 7881 Updated by: joey Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Sybase-ct (ctlib) related Operating system: PHP Version: 4.0.3pl1 Assigned To: Comments: #1: Use the MSSQL extension, not Sybase-ct. #2: Try a newer version of PHP. Since this bug belongs in neither the sybase-ct area, nor the mssql, I'm closing it. Previous Comments: --- [2001-06-30 15:02:25] [EMAIL PROTECTED] This is not related to the mssql extension. You are using the sybase extension. --- [2000-11-21 16:44:45] [EMAIL PROTECTED] Reclassify: MSSQL related (was Sybase CT Related) --- [2000-11-19 21:39:13] [EMAIL PROTECTED] ok, this is my php configure line: ./configure --with-apxs=/www/bin/apxs --with-sybase-ct=/opt/sybase-11.9.2 --enable-track-vars I've got these 3 packages installed on /opt/sybase-11.9.2 sybase-ase-11.9.2-3.i386.rpm sybase-common-11.9.2-3.i386.rpm sybase-openclient-11.1.1-3.i386.rpm I can query a MSSQL 7.0 server + SP2 applied with no problems, but if I ever misstype a query php won't report the sql server error and hangs the script forever. I strace'd apache and here are part of the results: (the cmd used was: strace -s 128 /www/bin/httpd -X) connect(6, {sin_family=AF_INET, sin_port=htons(1433), sin_addr=inet_addr(200.32.xxx.xxx)}}, 16) = 0 ioctl(6, FIONBIO, [1]) = 0 ioctl(6, FIOASYNC, [0]) = 0 setsockopt(6, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 setsockopt(6, IPPROTO_TCP1, [1], 4) = 0 ... some more not meaningfull sys calls. send(6, 11 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] sybase-ct extension hangs when querying mssql
I have been unable to duplicate this when querying a sybase server. If someone could provide a MSSQL server that I can run some queries against in order to track down this bug, I will see what I can do to locate it. In the meantime, I don't think that it's wise to point people to FreeTDS as we know that there are compile problems with FreeTDS that are not going to be fixed before 4.0.7. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11806 Updated: Using $string = md5($string); crashed HTTP child processes
ID: 11806 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Reproducible crash Operating system: Linux 2.2.16 PHP Version: 4.0.6 Description: Using $string = md5($string); crashed HTTP child processes Update: I have compiled php-4.0.6 with --enable-debug to try and get a backtrace, but when I do, the bug vanishes and the same code no longer crashed my httpd child process.. Here is some detailed info: PHP 4.0.6 config line: ./configure --with-mysql --with-gd --enable-track-vars --with-jpeg-dir=/usr/local/lib --enable-bcmath --with-apache=../apache_1.3.20 --enable-ftp --enable-sockets --with-mcrypt --enable-debug and for Apache 1.3.20 EAPI_MM=../mm-1.1.3 \ SSL_BASE=../openssl-0.9.6a \ ./configure \ --enable-module=ssl \ --with-layout=RedHat \ --activate-module=src/modules/php4/libphp4.a \ --enable-module=rewrite \ The script that is causing this error is: http://www.nerdnet.com/compose.phps As you can see, a use submits a form, which is the source of $cipher, an alphanumeric string, which is then encrypted and other actions take place after. I am not using the Zend Optimizer or anything unusual here at all... If I run the httpd thru gdb and reproduce the crash it gives me an error in shutdown_memory_manager() when it crashes, but not much else since the bug disappears when I compile in debug into PHP... If any more info is needed let me know... Thanks PHP team, you guys rule!!! Joe Previous Comments: --- [2001-06-30 05:10:11] [EMAIL PROTECTED] Can you please post your script as .txt file on the web, so that I can check how the $cipher is generated? And is it possibly for you to make a backtrace of this crash (http://www.php.net/bugs-generating-backtrace.php) as I couldn't reproduce it. Derick --- [2001-06-29 14:04:25] [EMAIL PROTECTED] PHP Options: './configure' '--with-mysql' '--with-gd' '--enable-track-vars' '--with-jpeg-dir=/usr/local/lib' '--enable-bcmath' '--with-apache=../apache_1.3.20' '--enable-ftp' '--enable-sockets' '--with-mcrypt' The problem I am having is: When using the code: $cipher = md5($cipher); httpd crashes the current child process with: [Fri Jun 29 10:54:49 2001] [notice] child pid 9766 exit signal Segmentation fault (11) [Fri Jun 29 10:54:50 2001] [notice] child pid 9920 exit signal Segmentation fault (11) The page then fails to load, returning nothing to the browser. Also, I have another function called CleanSring($string); which looks like: function CleanString($string) { $string = strip_tags($string); $string = preg_replace(//?(html|head|meta|title|body|font|img|.jpg|.gif|.vbs|script|tr|table|text).*/,,$string); $string = preg_replace(//?(HTML|HEAD|META|TITLE|BODY|FONT|IMG|.JPG|.GIF|.VBS|SCRIPT|TR|TABLE|TEXT).*/,,$string); $string = preg_replace(/[^]*/,,$string); return $string; } Calling this function like: $string = CleanString($string); causes the same problem. Whats weird is I call md5() again below the problem code: $now = date(r); $thisID = md5(substr(makeID(), 0, 16)); $onetimepass = substr(md5($thisID), 0, 8); And neither of these causes the same problem, even when being used in the same document. --- Full Bug description available at: http://bugs.php.net/?id=11806 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11816: Page not found for MSIE in SSL mode
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.6 PHP Bug Type: Apache related Bug description: Page not found for MSIE in SSL mode I am using MSIE 5.5, with web-hosting apache. When do the secure connection SSL, sometime, it displays: Page Not Found. I find out it happens because MSIE doesn't kill the secured connection. (I refer to the documentation: http://www.modssl.org/docs/2.6/ssl_faq.html#ToC48 The web-hosting refushed to change the directive in apache. Can I do it in PHP level? Thanks in advance. Fikko -- Edit Bug report at: http://bugs.php.net/?id=11816edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11816 Updated: Page not found for MSIE in SSL mode
ID: 11816 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Apache related Operating system: PHP Version: 4.0.6 Assigned To: Comments: This is not PHP bug. Ask support questions on [EMAIL PROTECTED] Previous Comments: --- [2001-06-30 23:42:54] [EMAIL PROTECTED] I am using MSIE 5.5, with web-hosting apache. When do the secure connection SSL, sometime, it displays: Page Not Found. I find out it happens because MSIE doesn't kill the secured connection. (I refer to the documentation: http://www.modssl.org/docs/2.6/ssl_faq.html#ToC48 The web-hosting refushed to change the directive in apache. Can I do it in PHP level? Thanks in advance. Fikko --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11816edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Ò»¸öÓòÃû6¸öÍøÕ¾(ÓòÃû×¢²á´óÓÅ»Ý)
×𾴵Ŀͻ§£ºÄúºÃ! ·²ÔÚ6ÔÂ23ºÅµ½7ÔÂ23ºÅÖ®¼äÔÚToday's NetworkÍê³É¹úÄÚ¡¢¹ú¼Ê¡¢ÐÂÓòÃû×¢²á£¬¾Í¿ÉÒÔÒ»¸öÓòÃû¾ÍÄÜͬʱ½¨Á¢Áù¸öÍøÕ¾,Ò²¾ÍÊÇ˵´Î¼¶ÓòÃûÊýÓÉÔÀ´µÄ3¸ö±äΪ6¸ö!ÔÙ¼ÓÉÏVDNSÌØÓеÄÈýÖÖÖ¸Ïò¹¦ÄÜ£¬Òª½¨Éè×Ô¼ºµÄδÀ´ÍøÒ׺ÍËѺü£¬¾ÍÒª´ÓÏÖÔÚ¿ªÊ¼£¡ »¥ÁªÍøÉÏÿÁ½ÃëÖ־ͻáÏûʧһ¸öÓòÃû£¡Í¶×Ê×Ô¼ºµÄÍøÂç×ÊÔ´£¬ÄúµÄÊÕ»ñ½«´ó´ó³¬³öÄúµÄÏëÏó£¡ Today¡¯s Network(http://www.now.net.cn)´´ÏÈ¿ª·¢µÄVDNSÓòÃû·þÎñÆ÷£¬ÄÜʵÏÖ£Õ£Ò£Ìת·¢¡¢Ö÷»ú£Á¼Ç¼¡¢£Í£ØÓʼþ¼Ç¼¡¢£É£ÐÖ¸Ïò¿ØÖƵȲÙ×÷,¸ü¿ÉÒÔËæÐÄËùÓûµØÔö¼Ó×Ô¼ºµÄ´Î¼¶ÓòÃû£¬ °ïÖúÄú½¨Á¢¶à¸öÍøÕ¾£¬Äã¿ÉÒÔÈÃËýÖ¸ÏòÈκοռ䣬Ҳ¿ÉÒÔÉêÇëÒ»´Î¿Õ¼ä¾Í½¨Áù¸öÍøÕ¾,Ò²¿ÉÒÔ²»ÉêÇë¿Õ¼ä¶øÓÃÔÀ´µÄ¿Õ¼ä,ÉõÖÁÓÃÃâ·Ñ¿Õ¼ä£¬ ¸üÀûÓÚÄúÓÅ»¯Ê¹Óÿռä×ÊÔ´¡£ ºÍÄú¹²Í¬Íƶ¯»¥ÁªÍø·¢Õ¹£¬ÎÒÃÇÏÖÍƳö¡°×¢²áÓòÃûÊîÆÚ´óÓŻݻ¡±£¬ ³ý´ËÖ®Í⣬ÎÒÃÇ»¹ÎªÄúËÍÉÏÎÒÃÇÌØÓеÄÍøÕ¾¹ÜÀí¹¤¾ßWEB-ADMIN£¬ËüÊǼ¯ÉÏ´«,ÏÂÔØ ÍøÒ³±à¼ ÎļþÒƶ¯ ɾ³ý ¿½±´µÈ¹¦ÄÜÓÚÒ»ÌåÍøÕ¾¹ÜÀí¹¤¾ß£¬Ó봫ͳFTPºÏÓÃ,¸üÓÐЧ,¸ü·½±ãµØ¹ÜÀíÄúµÄÍøÕ¾¡£ ±¾´Î»î¶¯½ØÖ¹ÓÚ7ÔÂ23ºÅ£¬ÇëץסÄúµÄ»úÓö£¬¿ªÍØÄúµÄÍøÉÏÉÌ»ú£¬¸Ï¿ì×¢²áÄúÃÎÏëµÄÓòÃû£¡Çëµã»÷http://www.now.net.cn/register/ ÎÒÃÇÒ»Ö±ÒÔרҵ¡¢ÓÅÖÊ¡¢ÁìÏÈΪ×ÚÖ¼£¬ÈȳÏΪÄú·þÎñ£¡ »¶ÓÖÂÐÅ Today's Network [EMAIL PROTECTED] »¶ÓÄã·ÃÎÊ ÎÒÃǵÄÍøÕ¾ http://www.now.net.cn -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [Zend Engine 2] Don't loose sight of the big picture
Zeev wrote: [snip] On another matter, does the big change to the engine mark a good time to make a concerted effort on tidying the language up a bit? I refer to the business of case sensitivity for function names, consistency with the order of arguments to functions, and consistency across the function name space which we discussed at some length a few months ago. Generally I'd say yes, as if this does come out as PHP 5.0, this would be the right time to tidy things up. However, we should only pick up projects which we can deliver in a reasonable time frame(tm). Maybe we can do it, maybe we can't. I believe that the first thing to do is try to get a group consensus (again) - however, this time, at least we can say that we have a major version coming out. I take it that this does give us *some* of license to break some backwards compatibility? :) --zak -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] safe_mode behavior modification request
Hi list, I'd like to submit the problem I have and the idea to circonvent it. I host web site. Those sites belong to different peapole (login) Putting safe_mode on breaks the loading of any file in include_path variable because there's no chances that they could belong to the script owner. Therefore it breaks any common library anyone could you (like phplib). OTOH, setting safe_mode to Off is a real lack of security. Suggestion: Keep safe_mode the way it works EXCEPT for files in include_path and tmp_path (for uploading...) Now I don't know php 4 code so much that I can do it alone. Does it sound a ood idea? Does it break something else ? Did I miss something ?? Can you give me some pointers to do it?? TIA -- Olivier PRENANT Tel:+33-5-61-50-97-00 (Work) Quartier d'Harraud Turrou +33-5-61-50-97-01 (Fax) 31190 AUTERIVE +33-6-07-63-80-64 (GSM) FRANCE Email: [EMAIL PROTECTED] -- Make your life a dream, make your dream a reality. (St Exupery) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]