[PHP] Re: [HEADSUP] rsync going temporarily down
On Thu, 16 Jul 2009, José Miguel Santibáñez A. wrote: Hi, here (http://cl.php.net) we lost all documentation... I'll try a re-sync manually, but nothing happenes... Just a heads-up for those of you reading the newsgroup in real-time and emailing me directly or contacting off the PHP General list, do not worry: the PHP website is not going down. To answer a few of the other questions that were actually asked: (...) * Do not worry, your government has not [yet] cut off access to the php.net website, but if you still want to download a copy of the manual, you are welcome to do so. Ok... We'll wait until documentation be back... I reviewed some mirrors (www, us) and they are all in the same situation: no documentation (not online, not download). Except those who have not been updated today ... en is now in the rsync space again, all other languages will follow. regards, Derick -- http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org twitter: @derickr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.9 Released!
Hello, The PHP development team would like to announce the immediate availability of PHP 4.4.9. It continues to improve the security and the stability of the 4.4 branch and all users are strongly encouraged to upgrade to it as soon as possible. This release wraps up all the outstanding patches for the PHP 4.4 series, and is therefore the last PHP 4.4 release. Security Enhancements and Fixes in PHP 4.4.9: * Updated PCRE to version 7.7. * Fixed overflow in memnstr(). * Fixed crash in imageloadfont when an invalid font is given. * Fixed open_basedir handling issue in the curl extension. * Fixed mbstring.func_overload set in .htaccess becomes global. A separate release announcement is also available. For changes in PHP 4.4.9 since PHP 4.4.8, please consult the PHP 4 ChangeLog. Release Announcement: http://www.php.net/release_4_4_9.php Downloads:http://www.php.net/downloads.php#v4 Changelog:http://www.php.net/ChangeLog-4.php#4.4.9 regards, Derick -- http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] PHP 4.4.9RC1
On Fri, 25 Jul 2008, Xuefer wrote: On Tue, Jul 22, 2008 at 3:57 PM, Derick Rethans [EMAIL PROTECTED] wrote: I packed PHP 4.4.1RC9 today, which you can find here: http://downloads.php.net/derick/ 4.4.9RC1? Uhm yes. regards, Derick -- HEAD before 5_3!: http://tinyurl.com/6d2esb http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.9RC1
Hello! I packed PHP 4.4.1RC9 today, which you can find here: http://downloads.php.net/derick/ Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we will release it on August 7th. This will be the last PHP 4.4 release. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.8 Released!
Hello! The PHP development team would like to announce the immediate availability of PHP 4.4.8. It continues to improve the security and the stability of the 4.4 branch and all users are strongly encouraged to upgrade to it as soon as possible. This release wraps up all the outstanding patches for the PHP 4.4 series, and is therefore the last normal PHP 4.4 release. If necessary, releases to address security issues could be made until 2008-08-08. A separate release announcement is also available. For changes in PHP 4.4.8 since PHP 4.4.7, please consult the PHP 4 ChangeLog. Release Announcement: http://www.php.net/release_4_4_8.php Downloads:http://www.php.net/downloads.php#v4 Changelog:http://www.php.net/ChangeLog-4.php#4.4.8 regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.8RC1
Hello! I packed PHP 4.4.8RC1 today, which you can find here: http://downloads.php.net/derick/ Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we can release it somewhere in the first week of 2008. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] PHP 4.4.8RC1
On Thu, 20 Dec 2007, Marcus Boerger wrote: Hello Derick, to stick with our announced plan, can we release this in 2007? That would be exactly in one week, on the 27th then. I prefer doing it just in the new year cause all the sysadms are back to work then. I think Jan 3rd is still acceptable :) regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Xdebug 2 released.
Hello! After almost four years of work, Xdebug 2 is finally ready. With improved functionality and many new features it is ready to totally change the way you develop in PHP. Some of the new features and updates include improved stack traces, execution traces to files, code coverage analysis and much improved remote debugging support. Xdebug's documentation has also been rewritten for more clarity. As with most open source projects, it's very hard to know who are actually the users of the project. As I would like to know my users better, I would invite everybody who finds Xdebug useful to send me a postcard with their location. (Address is here [1] at the top of the page). I am looking forwards to find out who you are! Now head over to the Xdebug site [2] and try it out! regards, Derick [1] http://derickrethans.nl/who.php [2] http://xdebug.org -- Xdebug | http://xdebug.org | [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.2.2 and PHP 4.4.7 Released!
The PHP development team would like to announce the immediate availability of PHP 5.2.2 and availability of PHP 4.4.7. These releases are major stability and security enhancements of the 5.x and 4.4.x branches, and all users are strongly encouraged to upgrade to it as soon as possible. Further details about the PHP 5.2.2 release can be found in the release announcement for 5.2.2 (http:// www.php.net/releases/5_2_2.php). Details about the PHP 4.4.7 release can be found in the release announcement for 4.4.7 (http:// www.php.net/releases/4_4_7.php). Security Enhancements and Fixes in PHP 5.2.2 and PHP 4.4.7: - Fixed CVE-2007-1001, GD wbmp used with invalid image size (by Ivan Fratric) - Fixed asciiz byte truncation inside mail() (MOPB-33 by Stefan Esser) - Fixed a bug in mb_parse_str() that can be used to activate register_globals (MOPB-26 by Stefan Esser) - Fixed unallocated memory access/double free in in array_user_key_compare() (MOPB-24 by Stefan Esser) - Fixed a double free inside session_regenerate_id() (MOPB-22 by Stefan Esser) - Added missing open_basedir safe_mode checks to zip:// and bzip:// wrappers. (MOPB-21 by Stefan Esser). - Limit nesting level of input variables with max_input_nesting_level as fix for (MOPB-03 by Stefan Esser) - Fixed CRLF injection inside ftp_putcmd(). (by loveshell[at] Bug.Center.Team) - Fixed a possible super-global overwrite inside import_request_variables(). (by Stefano Di Paola, Stefan Esser) - Fixed a remotely trigger-able buffer overflow inside bundled libxmlrpc library. (by Stanislav Malyshev) Security Enhancements and Fixes in PHP 5.2.2 only: - Fixed a header injection via Subject and To parameters to the mail() function (MOPB-34 by Stefan Esser) - Fixed wrong length calculation in unserialize S type (MOPB-29 by Stefan Esser) - Fixed substr_compare and substr_count information leak (MOPB-14 by Stefan Esser) (Stas, Ilia) - Fixed a remotely trigger-able buffer overflow inside make_http_soap_request(). (by Ilia Alshanetsky) - Fixed a buffer overflow inside user_filter_factory_create(). (by Ilia Alshanetsky) Security Enhancements and Fixes in PHP 4.4.7 only: - XSS in phpinfo() (MOPB-8 by Stefan Esser) While majority of the issues outlined above are local, in some circumstances given specific code paths they can be triggered externally. Therefor, we strongly recommend that if you use code utilizing the functions and extensions identified as having had vulnerabilities in them, you consider upgrading your PHP. Derick Rethans PHP 4.4 Release Master -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.6 Released!
Hello! The PHP development team would like to announce the immediate availability of PHP 4.4.6. This release addresses a crash problem with the session extension when register_globals is turned on that was introduced in PHP 4.4.6. This release comes also with the new version 7.0 of PCRE and it addresses a number of minor bugs. A separate release announcement is also available. For changes in PHP 4.4.6 since PHP 4.4.5, please consult the PHP 4 ChangeLog. Release Announcement: http://www.php.net/release_4_4_6.php Downloads:http://www.php.net/downloads.php#v4 Changelog:http://www.php.net/ChangeLog-4.php#4.4.6 regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Re: PHP 4.4.6 Released!
On Thu, 1 Mar 2007, Andrew Hutchings wrote: Derick Rethans wrote: Hello! The PHP development team would like to announce the immediate availability of PHP 4.4.6. This release addresses a crash problem with the session extension when register_globals is turned on that was introduced in PHP 4.4.6. So these release fixes a crash that wasn't introduced until this release. That's clever ;) Nope, it's a typo, it should read: This release addresses a crash problem with the session extension when register_globals is turned on that was introduced in PHP 4.4.5. regards, Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.6 RC1 Released
Hello! I packed PHP 4.4.6RC1 today, which you can find here: http://downloads.php.net/derick/ This release candidate addresses an issues that unfortunately crept into PHP 4.4.5: - Fixed segfault in ext/session when register_globals=On. (Tony) And some other issues: - Fixed bug #40578 (imagettftext() multithreading issue). (Tony) - Fixed bug #40502 (ext/interbase compile failure). (Tony) - Fixed bug #40286 (PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed). (Dmitry) It also updates the PCRE library to version 7.0. Please test it carefully, and report any bugs in the bug system. If everything goes well, we can release it somewhere at the end of next week. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP 4.4.6 RC1 Released
On Thu, 22 Feb 2007, bruce wrote: just out of curiousity. are these changes also automatically rolled into the php 5.x stream? Yes, they will be there as well. However, the session issue is not a problem in that branch. regards, Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.5 Released
Hello! The PHP Development Team would like to announce the immediate release of PHP 4.4.5. This release is a stability and security enhancement of the 4.4.X branch, and all users are strongly encouraged to upgrade to it as soon as possible. A separate release announcement is also available. For changes in PHP 4.4.5 since PHP 4.4.4, please consult the PHP 4 ChangeLog. Release Announcement: http://www.php.net/release_4_4_5.php Downloads:http://www.php.net/downloads.php#v4 Changelog:http://www.php.net/ChangeLog-4.php#4.4.5 regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [DOC-LICENSE] Release phpexplorator
Hello, please do not spam our mailinglists with release announcements. regards, Derick On Tue, 6 Feb 2007, Tchouamou Eric Herve wrote: Project phpexplorator ('phpexplorator') has released the new version of package 'phpexplorator'. You can download it from SourceForge.net by following this link: https://sourceforge.net/project/showfiles.php?group_id=183073release_id=48 3795 or browse Release Notes and ChangeLog by visiting this link: https://sourceforge.net/project/shownotes.php?release_id=483795 Description: phpexplorator is a web interface to remote explore, manage, preview , edit, create, copy, rename, download, upload, zip, unzip ..etc, files, images, and directory in the server site. Integrated with TinyMce, useful for computer programmer and admin Release Name: 2.0 Notes: This new version can preview images in all your disk, and download a folder in zip format. Explore your file remotely will be now very fast and will more informations. Support preview of text files and images files. More than 50 new functionalities are available in this new version. All was write in object oriented, you easily use his file to be class and integrate it in your personal application. Thank and use with caution this admin appplication. T.Eric.H Changes: - Better interface - 4 differents login mode (challenge form, basic, url, apache, no) - All object oriented - More informations on files. - More command to be use - Preview of images - Download directories - Zip compression and download list of files and folders - More configutions option - Correct some bugs - Move and copy array of folders and files with one click - support apache icons, and apache configuration - Icon internal saved in base64..etc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.5RC2
Hello! I packed PHP 4.4.5RC2 today, which you can find here: http://downloads.php.net/derick/ Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we can release it somewhere at the end of next week. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.5RC1
Hello! I packed PHP 4.4.5RC1 today, which you can find here: http://downloads.php.net/derick/php-4.4.5RC1.tar.bz2 ee9238175c6b6ecec8712954065451c4 http://downloads.php.net/derick/php-4.4.5RC1.tar.gz 5337c72e3d70fb88b932215957e250f8 Windows binaries will follow suit. Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we will probably release PHP 4.4.5 before the end of the month. regards, Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.4 and 5.1.5 Released!
Hello, PHP development team would like to announce the immediate availability of PHP 5.1.5 and PHP 4.4.4. The two releases address a series of security problems discovered since PHP 5.1.4 and 4.4.3, respectively. These include the following: - Added missing safe_mode/open_basedir checks inside the error_log(), file_exists(), imap_open() and imap_reopen() functions. - Fixed overflows inside str_repeat() and wordwrap() functions on 64bit systems. - Fixed possible open_basedir/safe_mode bypass in cURL extension and on PHP 5.1.5 with realpath cache. - Fixed overflow in GD extension on invalid GIF images. - Fixed a buffer overflow inside sscanf() function. - Fixed an out of bounds read inside stripos() function. - Fixed memory_limit restriction on 64 bit system. In addition to the security fixes, both releases include a small number of non-security related bug fixes. The outlined issues can only be exploited locally, however, we still recommend that all users upgrade to either one of the new releases as soon as possible. Ilia Alshanetsky and Derick Rethans -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.4RC1 released
Hello! PHP 4.4.4RC1 has been packaged and can be found here: - http://downloads.php.net/derick/php-4.4.4RC1.tar.bz2 MD5 (php-4.4.4RC1.tar.bz2) = bb89d67c3a011229adea6c31aae6751b - http://downloads.php.net/derick/php-4.4.4RC1.tar.gz MD5 (php-4.4.4RC1.tar.gz) = 13d41fcc56bb5e164c488575a0b96e59 - http://downloads.php.net/edink/php-4.4.4RC1-Win32.zip This release is intended to address a series of security issues. Aside from security fixes there are virtually no other changes in this release compared to PHP 4.4.43. Please give this version a try to see if everything is still working properly. If all is well, final will be released within a week (next Thursday), most likely along with PHP 5.1.5. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.3 released
Hello! The PHP Development Team would like to announce the immediate release of PHP 4.4.3. This release combines small number of bug fixes and resolves a number of security issues. All PHP users are encouraged to upgrade to this release as soon as possible. A separate release announcement is also available. For changes in PHP 4.4.3 since PHP 4.4.2, please consult the PHP 4 ChangeLog. Release Announcement: http://www.php.net/release_4_4_3.php Downloads:http://www.php.net/downloads.php#v4 Changelog:http://www.php.net/ChangeLog-4.php#4.4.3 regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.3RC2
Hello! I packed PHP 4.4.3RC2 today, which you can find here: http://downloads.php.net/derick/ Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we can release it somewhere in the second half of this month. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.3RC1 testing
Hello! I packed PHP 4.4.3RC1 today, which you can find here: http://downloads.php.net/derick/ Windows downloads can be found here: Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we can release 4.4.3 somewhere in the middle of next week (around the 30th). If there are critical bugs found we will instead then release RC2. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP6 just became my worst nightmare.
Jochem Maas wrote: apparently calling a dynamic function using static syntax will cause an E_FATAL. ? That's just how OO design works... If you have a non-static method you can always have a $this- lingering in there. Now, if you call this method with the static syntax, $this suddenly doesn't exist... Design wise trying to do something like this is just fundamentally wrong. That it was supported in PHP 5 can be considered as the bug and it was just fixed... The other way (calling a static function dynamically) ofcourse does not give any problems. Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.2 released!
Hello! The PHP Development Team would like to announce the immediate release of PHP 4.4.2. This is a maintenance release that addresses a number of minor security problems and fixes a few regressions that shown up in PHP 4.4.1. All users of PHP 4 are recommended to upgrade to PHP 4.4.2. A separate release announcement is also available. For changes in PHP 4.4.2 since PHP 4.4.1, please consult the PHP 4 ChangeLog. Release Announcement: http://www.php.net/release_4_4_2.php Downloads:http://www.php.net/downloads.php#v4 Changelog:http://www.php.net/ChangeLog-4.php#4.4.2 regards, Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.2RC2
Hello! I packed PHP 4.4.2RC2 today, which you can find here: http://downloads.php.net/derick/ Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. Please do not commit any changes to the PHP_4_4 tree until PHP 4.4.2 is released, unless it's a critical bugs. Please confer with me first then. If everything goes well, we can release it somewhere at the end of next week. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.2RC1
Hello! I packed PHP 4.4.2RC1 today, which you can find here: http://downloads.php.net/derick/ . Windows binaries will follow shortly. Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we can release it next tuesday. Especially test issues with mod_rewrite and Apache 2 please! regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.1 has been released
Hello! PHP 4.4.1 is now available for download [1]. This version is a maintenance release, that contains numerous bug fixes, including a number of security fixes related to the overwriting of the GLOBALS array. All users of PHP 4.3 and 4.4 are encouraged to upgrade to this version. The full list of changes in PHP 4.4.1 is available in the PHP 4 ChangeLog [2] and a list with the most important changes is available through the release announcement [3]. [1] http://php.net/downloads.php#v4 [2] http://php.net/ChangeLog-4.php#4.1.1 [3] http://php.net/release_4_4_1.php regards, Derick -- http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.1RC1
Hello! I packed PHP 4.4.1RC1 today, which you can find here: http://downloads.php.net/derick/ Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we can release it somewhere at the end of next week. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.0 Released!
Hello! The PHP Development Team would like to announce the immediate release of PHP 4.4.0. This is a maintenance release that addresses a serious memory corruption problem within PHP concerning references. If references were used in a wrong way, PHP would often create memory corruptions which would not always surface and be visible. The increased middle digit was required because the fix that corrected the problem with references changed PHP's internal API. PHP 4.4.0 does not have any new features, and is solely a bugfix release. A separate release announcement is also available. For changes in PHP 4.4.0 since PHP 4.3.11, please consult the PHP 4 ChangeLog. Release Announcement: http://www.php.net/release_4_4_0.php Downloads:http://www.php.net/downloads.php#v4 Changelog:http://www.php.net/ChangeLog-4.php#4.4.0 regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.4.0RC1
Hello! The PHP Team just released it's first release candidate for PHP 4.4.0. This is solely a bug-fix only release, the increased middle digit is needed because this release changes PHP's Internal API that causes third-party binary extensions to be incompatible with PHP 4.3.x. This release address a major problem within PHP concerning references. If references where used in a wrong way, PHP would often create memory corruptions which would not always surface and be visible. In other cases it can cause variables and objects to change type or class. If you encountered strange behavior like this, this release might fix it. Besides addressing this reference related bug, 46 other bugs are fixed. Please test this release and report any bugs or problems in our bugsystem (after searching first). If all goes well I plan to roll a release of 4.4.0 on June 27th. If there are problems a new RC will follow. Only critical bugs are going to be fixed between RC1 and RC2. You can find 4.4.0 RC1 at http://qa.php.net/~derick/php-4.4.0RC1.tar.bz2 regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Re: different behaviour converting float to integer
On Mon, 4 Oct 2004, M. Sokolewicz wrote: You might want to ask this on the internals list (cc'd) Tomas Kuliavas wrote: When php 5.0.2 converts float to integer, it uses biggest possible integer value. Other php versions overflow and use negalive integers. There is already a bug report for it, no need to continue this discussion. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] PHP5: ext/dom: Namespaces
Don't crosspost to two irrelevant lists, please Derick On Sun, 14 Mar 2004, Vivian Steller wrote: hello, once again a post about the tricky namespaces. I played with the following functions concerning namespaces: domdocument-createElementNS domdocument-createAttributeNS domelement-setAttributeNS domelement-getAttributeNS (domelement-hasAttributeNS) as i found out the behavior of some functions differs when handling namespaces. maybe we can start a thread thinking about this behavior - at the moment i don't have the enlightened view into this very complex theme. would be nice if you could help me/us understanding namespaces a bit more... ok here are the things i found out. copy the code to your editor and step through the examples - the important output is given in the comments. Thanks for taking time to that :) /* START */ pre /* SIMPLE NAMESPACE EXAMPLE */ ?php $doc = new DomDocument(); $xpath = new DomXPath($doc); /* SIMPLE NAMESPACE EXAMPLE */ $node1 = $doc-createElementNS(namespaceURI, nodeName); $node1 = $doc-appendChild($node1); print(htmlspecialchars(\n . $doc-saveXML() . \n)); // Output // nodeName xmlns=namespaceURI/ $namespaces = $xpath-query(//namespace::*); foreach($namespaces as $item) { print($item-nodeName . = . $item-nodeValue . \n); } // Output // xmlns:xml = http://www.w3.org/XML/1998/namespace // xmlns = namespaceURI $doc-removeChild($node1); ? Right behavior so far! /* NAMESPACE WITH PREFIX EXAMPLE */ ?php /* NAMESPACE WITH PREFIX EXAMPLE */ $node2 = $doc-createElementNS(namespaceURI, prefix:localName); $node2 = $doc-appendChild($node2); print(htmlspecialchars(\n . $doc-saveXML() . \n)); // Output // prefix:localName xmlns:prefix=namespaceURI/ $namespaces = $xpath-query(//namespace::*); foreach($namespaces as $item) { print($item-nodeName . = . $item-nodeValue . \n); } // Output // xmlns:xml = http://www.w3.org/XML/1998/namespace // xmlns:prefix = namespaceURI // $doc-removeChild($node2); ? Still right behavior! /* NAMESPACE WITH EXISTING PREFIX EXAMPLE */ ?php /* NAMESPACE WITH EXISTING PREFIX EXAMPLE */ $node3 = $doc-createElementNS(namespaceURI, localName); $node3 = $node2-appendChild($node3); print(htmlspecialchars(\n . $doc-saveXML() . \n)); // Output // prefix:localName xmlns:prefix=namespaceURI ¬ // prefix:localName/ ¬ // /prefix:localName $namespaces = $xpath-query(//namespace::*); foreach($namespaces as $item) { print($item-nodeName . = . $item-nodeValue . \n); } // Output // xmlns:xml = http://www.w3.org/XML/1998/namespace (node2) // xmlns:prefix = namespaceURI (node2) // xmlns:xml = http://www.w3.org/XML/1998/namespace (node3) // xmlns:prefix = namespaceURI (node3) // $doc-removeChild($node3); ? Right behavior, but namespace node will be removed, xpath-expression shows prefix - thats still right. /* IMPORT NAMESPACE NODE WITHOUT CHILDREN EXAMPLE */ ?php /* IMPORT NAMESPACE NODE WITHOUT CHILDREN EXAMPLE */ $newDoc = new DomDocument(); $newXpath = new DomXPath($newDoc); $newNode3 = $newDoc-importNode($node3);// second argument $deep = FALSE!! $newNode3 = $newDoc-appendChild($newNode3); print(htmlspecialchars(\n . $newDoc-saveXML() . \n)); // Output // localName/ $newNamespaces = $newXpath-query(//namespace::*); foreach($newNamespaces as $item) { print($item-nodeName . = . $item-nodeValue . \n); } // Output // xmlns:xml = http://www.w3.org/XML/1998/namespace (newNode3) $newDoc-removeChild($newNode3); ? Maybe right behavior, but i think loosing the namespace while importing the node without its children is a bit dangerous... /* IMPORT NAMESPACE NODE EXAMPLE */ ?php /* IMPORT NAMESPACE NODE EXAMPLE */ $newNode3 = $newDoc-importNode($node3, TRUE); // second argument $deep = TRUE now!! $newNode3 = $newDoc-appendChild($newNode3); print(htmlspecialchars(\n . $newDoc-saveXML() . \n)); // Output // prefix:localName xmlns:prefix=namespaceURI/ $newNamespaces = $newXpath-query(//namespace::*); foreach($newNamespaces as $item) { print($item-nodeName . = . $item-nodeValue . \n); } // Output //
[PHP] Happy New Year | PHP Look Back 2003
Hello! I would like to wish you all a happy new year. In tradition with last year I wrote a look back on the past year of PHP development again which you can find here: http://www.derickrethans.nl/20040101.php Have fun reading! regards, Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-QA] Re: [PHP-DEV] Re: PHP 5.0.0 Beta 1? better called alphazero
[note to all: do not crosspost this, [EMAIL PROTECTED] is the forum to discuss it] On Wed, 2 Jul 2003, Elfyn McBratney wrote: Due to the MySQL client library changing it's licensing terms from public domain to GPL it can no longer be included with PHP. A clause is being worked on to allow for this in the future. This is only true for libmysql 4. It iw perfectly to bundle the 3.x libraries, but we still do not do that because our policy is not to bundling something that doesn't make sense. If you install MYSQL on your server, you usually install the client libraries too, so there is no realy problem here at all. 4. i can't understand why they call it php5 beta1 , as long as mysql doesnt work it can only called php5 alpha zero. Then it will always be an alpha. And MySQL does work fine, you just have to install the client libraries yourself. Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: [PHP-QA] Re: [PHP-DEV] Re: PHP 5.0.0 Beta 1? bettercalled alph...
On Wed, 2 Jul 2003 [EMAIL PROTECTED] wrote: Well, I haven't figured out how to get it working on Windows yet. So, could you tell me how? There is a php_mysql.dll in the version on snaps, but it doesn't work. It gives an error: invalid library (maybe not a PHP library). So, I don't see any way to do it except to compile it on Windows and I haven't a clue how to do that. That's already under investigation, and it might alreay have been fixed in the latest snaps. Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] disabling functions
On Mon, 30 Jun 2003, Daryl Meese wrote: Can I edit the disabled_functions setting on a per directory bases. No, you can not do that. Due to performance reasons it won't be implemented either. Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Concatenate
On Mon, 30 Jun 2003, Ryan Vennell wrote: how can i concatenate two strings? i cant seem to find the function... thanks :) With . Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php5 and mysql licences
On Mon, 30 Jun 2003, Christopher Speer wrote: i just read the news on php.net and wondered what it says about php5 and MySQL. They say that the libs for using a mysql server are not implemented any more,... so my question is: does that mean i (we) have to buy the licences to be allowed to use the mysql libs for php? No, that is not true. You will only need to buy a MySQL license if your script uses PHP's MySQL 4.x support (ie, linking to libmysql 4.x), you distribute your script AND you do not want to distribute your set of script under the GPL license (but under for example the BSD license or a commerical license). regards, Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php5 and mysql licences
On Mon, 30 Jun 2003, Dan Joseph wrote: Is the mysql client library going to be put back in for future betas? Or are we mis-reading the change log and its still there? No, we will not bundle the library with PHP 5 anymore. Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-general as REPLY TO
On Mon, 30 Jun 2003, John Manko wrote: I'm wondering why the listed Reply To address is not [EMAIL PROTECTED] Thing would be so much easier to just reply than cut-n-paste when reply to the entire list on a subject (which is the norm). That's an evil thing, and misusing e-mail. E-mail clients have the reply-all function for this. Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Piping print_r output to a variable
On Mon, 30 Jun 2003, Mike Mannakee wrote: Hi all, Is there a way I can pipe the output of print_r() into a variable for further processing? Use var_Export and set the 2nd parameter to TRUE Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP5.0.0 b1 texts' misunderstandings (to those who haveproblems with install too)
On Mon, 30 Jun 2003, Ilja Polivanovas wrote: Hi all, Would be fine if someone correct install.txt bundled with distribution. The Apache install instruction's line --- LoadModule php4_module c:/php/sapi/php4apache.dll -- have at least be changed to --- LoadModule php5_module c:/php/sapi/php4apache.dll -- to run PHP 5.0.0 b1 on Windows Machine Fixed in CVS. Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-general as REPLY TO
On Mon, 30 Jun 2003, Doug Essinger-Hileman wrote: On 30 Jun 2003 at 21:23, Derick Rethans wrote: I'm wondering why the listed Reply To address is not [EMAIL PROTECTED] Thing would be so much easier to just reply than cut-n-paste when reply to the entire list on a subject (which is the norm). That's an evil thing, and misusing e-mail. E-mail clients have the reply-all function for this. I disagree with you Derick. In many (most? all?) programs, the reply- all function will send an email back to the list **and** one to the author. This wastes bandwidth needlessly, in my opinion. I receive the messages to the list and do not need to receive a message sent directly to me. You have procmail for that. There is some very good explanation for this, see http://www.math.fu-berlin.de/~guckes/faq/maillist.html#munge_reply-to Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] web site security: how to hide login info for mysql-connection
On Mon, 30 Jun 2003, Wendell Brown wrote: On Mon, 30 Jun 2003 13:50:21 -0600, Peter Janett wrote: Directory /var/www/html/mydatabase php_value mysql.default_user fred php_value mysql.default_password secret php_value mysql.default_host server.example.com /Directory H what about phpinfo()? It shows those settings in the clear. php_value disable_functions phpinfo Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-general as REPLY TO
On Mon, 30 Jun 2003, Doug Essinger-Hileman wrote: Having said this, I suspect that you and I will continue to disagree, which is perfectly okay. If this list changes the default I will be happy. If it doesn't, I will learn to adjust. One request I make is that folk, including you, Derick, refrain from sending replies to my email to both the list *and* my personal inbox. There's no need to waste the bandwidth. You'll have to learn to adjust then I guess. And do those 2k really matter? Come on... Just get a good mailer that defaults to Reply-All (like, mutt, pine, pcpine) Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-QA] Re: [PHP] PHP 5.0.0 Beta 1
On Sun, 29 Jun 2003, Robert Cummings wrote: On Sun, 2003-06-29 at 14:19, Sterling Hughes wrote: - Due to issues surrounding the MySQL 4.0 license, the MySQL libraries are no longer bundled with PHP. For more information on these licensing changes please see the MySQL licensing policy [1] [1] http://www.mysql.com/products/licensing.html I read the licensing information in the above link, but I'm curious what exactly in it necessitated the need to unbundle MySQL? Anyone have a quick answer? It's GPL. Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails. - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] RE: PHP Security Advisory: CGI vulnerability in PHPversion 4.3.0
On Mon, 17 Feb 2003, McKinney, Rod ERM wrote: Remove me from your list See the footer of this email: -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php Derick -- Stop mad cowboy disease! - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Vulvan Logic SRM - does anyone use it?
On 10 Feb 2003, Tamas Arpad wrote: I'm thinking about using SRM application server for storing cached data. But I have to convince my customers that it's stable enough and is ready to use in production environment. Is it considered stable enough to use in such applications? As I see it hasn't been maintained for at least half year. I won't consider it production stable _yet_, we're still working on it though, and it is definitely maintained. But without a lot of feedback we don't know about the things that go wrong. regards, Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Look Back 2002
Hello! We are almost at the end of 2002, and it seemed appropriate to look back on the development issues of the past year. So starts the first PHP Look Back! You can find it @ http://www.derickrethans.nl/20021230.php, and if you have any comments,feel free to post them with the link at the bottom of the page. Have fun reading! Derick -- - Derick Rethans http://derickrethans.nl/ JDI Media Solutions http://www.jdimedia.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] XML-Presentationsystem from the Conf2002
On Fri, 27 Dec 2002, Tobias Schlitt wrote: I saw the nice-looking presentationsystem, written in PHP and using XML, on the PHP-Conference this year. I liked that very much and think it's must for every PHP-related presentation. So, can anyone tell me, where to download the system? Has anyone got it at home and could send me a quick tar-ball of it per mail?? It's in CVS under the modules 'pres' and 'presentations', feel free to have a look. Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] XML-Presentationsystem from the Conf2002
On Fri, 27 Dec 2002, Derick Rethans wrote: On Fri, 27 Dec 2002, Tobias Schlitt wrote: I saw the nice-looking presentationsystem, written in PHP and using XML, on the PHP-Conference this year. I liked that very much and think it's must for every PHP-related presentation. So, can anyone tell me, where to download the system? Has anyone got it at home and could send me a quick tar-ball of it per mail?? It's in CVS under the modules 'pres' and 'presentations', feel free to - pres2 (as rasmus stated). Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: object passing by reference
Geoffrey Hoffman wrote: I want to pass a reference to objectA along with other strings to a new objectB( constructor. Where does my go? I just keep getting Fatal error: Call to a member function on a non-object Can you post the relevant snippet of code? Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: problem with https
Vivek Kedia wrote: i have apache 1.3.26 on php 4.2.3 everything else is running fine except https//whatever when i am trying to access the files thru apache , I have looked for SSL properties in httpd.conf and everything is properly enables( that what i think ) . The error generated is page not found and when i am running without s in the https://; the page is being displayed properly , Do any1 have any idea What does the apache log file (error_log and access_log) tell you about this? -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How to create zip files in PHP ?
Php User wrote: How to create zip files in PHP ? I found that php's zip function are read only... Can any one help me with that ? See this tutorial on zend.com: http://www.zend.com/zend/spotlight/creating-zip-files1.php http://www.zend.com/zend/spotlight/creating-zip-files2.php http://www.zend.com/zend/spotlight/creating-zip-files3.php -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: XSLT support for RH8
Dan Kuykendall wrote: I cannot seem to get RH8 to to compile XSLT support. Has anyone else gotten this to work? Anyone with the resulting php-xslt rpm? What is the error message? And you really should not rely on the RH8 RPMS as they found it necessary to change some defaults. -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: amp; in Query String
Jonathan Rosenberg wrote: I have a page with thumbnail pictures that can be clicked on to see a larger picture. Each picture is hyperlinked as follows a HREF=show_pic.php?pic=blahcaption=Some+Text I access the 'pic' 'caption' attributes with $_GET['pic'], etc. Pretty standard stuff. I have PHP set up so that error messages get mailed to a specified mail account. Every so often I get the following error message: Undefined index: caption In file /home//show_pic.php, line 64 page: /show_pic.php?pic=gb3.jpgamp;caption=Some+Text The problem is obviously (I think) that the $_GET['caption'] is failing. What I can't figure out is why the '' got turned into 'amp;'. Is a browser doing this? Yes it is. Actually, you should specify the URL with the amp; yourself, like this: a HREF=show_pic.php?pic=blahamp;caption=Some+Text otherwise it is not valid HTML. -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Making verification code harder to OCR?
Leif K-Brooks wrote: I'm using a verification code image to stop automated sign ups, but two hackers seem to be OCRing it. I've looked through the registration script, and there's definitley no security holes. Does anyone have any ideas as to making the image harder to OCR? Use two different shades of one color (ie. blue and somewhat lighter blue). You may also want to do some tricks with the form of the characters, so instead having a nice 0 on your screen, you can use dots to somewhat represent it. (Much like the color-blindness tests do). regards, Derick ?php // seed with microseconds function make_seed() { list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 10); } $seed = make_seed(); mt_srand($seed); $dbh = mysql_connect (, , ) or exit; mysql_select_db (,$dbh) or exit; $authimage = ImageCreate(40,15); $bgnum = mt_rand(1,3); switch($bgnum){ case 1: $white = ImageColorAllocate($authimage, mt_rand(250,255), mt_rand(250,255), mt_rand(250,255)); break; case 2: $green = ImageColorAllocate($authimage, mt_rand(0,5), mt_rand(250,255), mt_rand(0,5)); break; case 3: $yellow = ImageColorAllocate($authimage, mt_rand(250,255), mt_rand(250,255), mt_rand(0,5)); break; } $black = ImageColorAllocate($authimage, mt_rand(0,30), 0, 0); header(Content-type: image/png); $getcode = mysql_fetch_array(mysql_query(select * from signupcodes where id = '$id')); imagestring($authimage,mt_rand(4,5),mt_rand(0,5),0,$getcode['code'],$black); imageline($authimage,0,mt_rand(0,15),40,mt_rand(0,15),$black); imageline($authimage,0,mt_rand(0,15),40,mt_rand(0,15),$black); imagepng($authimage); imagedestroy($authimage); ? -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: function args declared by-reference, with default value?
Nick Eby wrote: true or false: when declaring a function, a given argument can be declared to pass by reference, or can be declared to have a default value, but never both. i.e., you can only write one of: function foo($param) function foo($param = bar) but never the equivalent of: function foo($param = bar) is there a way to declare an argument with both pass-by-reference and default-value properties? No, but this will be supported by Zend Engine 2, which will drive PHP 5 and higher. -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Undefined Variable
Adriano Santos wrote: Hi, I'm with problem: Undefined Variable. I'm using : PHP 4.2.3 MySql 3.2.39 Windows 2000 How do I make to soluction my problem ? at the top of your script: error_reporting(E_ALL ~E_NOTICE); or initialize your variables likes: $number = 0; $string = foo; Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - The PHP Magazine for Professionals - http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: extension can't be found
Liug wrote: I just compiled/installed apache/php4.2.3 with postgres support. the default php.ini-dist is used. I added extension=pgsql.so but when I start apache, error_log shows it can't find pgsql.so. after some trial and error, I found the following line in the default php.ini causes the problem: extension_dir = ./ if I comment this line out, apache can load pgsql.so fine. I also tried to change to extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20020429 this also solves the problem. My question is: is the default value in php.ini incorrect or am I doing something wrong? Nothing is wrong at all, the default setting in php.ini-dist is that you can load your modules from the current directory, this is needed for some users to provide them with loadable module support on ISPs; if you comment it out it uses the default in the code, which points to /usr/local/lib/php/extensions/no-debug-non-zts-20020429. Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - The PHP Magazine for Professionals - http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Post again. question about Animated GIF
Jungsu Heo wrote: Hello~. I made a PHP script which resize GIF Image. But, Animated GIF don't Animate ;-( Manual says 'use imagecolortransparent() to format GIF89'. The library that PHP uses, libgd, can't handle multiple frames in a GIF. SO if you resize a GIF with it the result that comes out will only be the first frame in the original GIF file; there is nothing to do about this. -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - The PHP Magazine for Professionals - http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: put result of include into a variable
Ernest E Vogelsinger wrote: One thing - be warned that some sites (esp. M$) send a redirect at the index (or default) pages... the fopen() will not honor this redirect. Using cUrl would be a better way to handle this, IMHO. fopen() in the upcoming PHP 4.3.0 will support this though. Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - The PHP Magazine for Professionals - http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Undefined Variable
Adriano Santos wrote: My php.ini: error_reporting = E_ALL ~E_NOTICE I have a form to send of the variables, but my page do not receive values. This my code: ?php $nome = StrToLower($nome); $senha = StrToLower($senha); ? I guess you use PHP 4.2.0+; since this version the register_globals setting defaults to off. See http://www.php.net/release_4_2_0.php for more info. This change was necessary as part of our efforts to make PHP scripting more secure and portable. -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - The PHP Magazine for Professionals - http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Some error in file upload.
Naif Al-Otaibi wrote: I copy a complete example from a book to upload file and I got this message error when I browse the file: Parse error: parse error, unexpected '!', expecting T_VARIABLE or '$' in c:\inetpub\wwwroot\php5\file_upload.php on line 32 Change if(isset(!$WINDIR) to if(!isset($WINDIR) and it should work. I wonder, which book is this? -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - The PHP Magazine for Professionals - http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DOC] Re: [PHP] preg_replace_callback
On Mon, 18 Nov 2002, Bikeman wrote: Me again. I think this really badly documented in the documentation. I hope this is solved soon. To be more detailed: The preg_replace_callback()-function documentation says it is the same as the preg_replacec()-function, except for the second argument. Apparently, it is not, since it doesn't support multiple patterns to be recognized and replaced. I think this should be made clear. I suppose I'll be using the preg_replace(), then. Maybe I'll try to find the way-in-between, with the /e-modifier ... I thought the callback-variant was more elegant, but I have to get it to work, so ... Please file a bugreport in the Documentation problem so that we won't forget this. Derick John W. Holmes [EMAIL PROTECTED] wrote in message 006101c28e91$4609e190$7c02a8c0@coconut">news:006101c28e91$4609e190$7c02a8c0@coconut... callback should be the name of a function that determines what the matched pattern will be replaced with. Maybe you just need the regular preg_replace(), instead of the one with callback? ---John Holmes... -Original Message- From: Bikeman [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 17, 2002 2:23 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; php- [EMAIL PROTECTED] Subject: [PHP] preg_replace_callback Hello. I have totally no clue at all wether I am posting in the right newsgroup here, and I was not planning on caching all messages in my (first time used, I prefer Outlook) Outlook Express before searching. So if I am disobeying all rules here ... I'm sorry ... I just am not an experienced news- service user ... Now, my question/remark/bug report. It concerns, ad you could guess, the preg_replace_callback function. The manual is very short on this function, and the comments posted on the online-version of the manual, are not helping me, either ... I am trying to use this function as the regular preg_replace can be used, namely woth a patterns-array, a replacement-array (which gets the callback-array) and a subject. This doesn't work, though ... It appears as if the callback-variant of the preg_replace version isn't capable of handling multiple patterns at a time. This is the error-message I get: Warning: preg_replace_callback() requires argument 2, 'Array', to be a valid callback in I pass it, as a second argument, an Array that consists of strings containing the names of functions I defined later in my php-file. (Hmmm ... Could that be the problem? Tha fact that I define the functions AFTER I give the Array tot the functions? Don't think so, though ...) Did anybody have the same experience, or am I really doing something wrong? Tnx in advance for any reply!! Bikeman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] php4.3.0-pre2 - win32 binaries
Please do NOT use non-offical binaries for testing! Windows binaries will be posted soon. Derick On Mon, 28 Oct 2002 [EMAIL PROTECTED] wrote: anyone can download for testing php-4.3.0-pre2 from: http://chat.italma.ru/php/ (compiled with vc++.net) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- --- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Forms not passing variables
Hai, did you check the setting of register_globals really changed? See the phpinfo(); output if it's really set to on. If not, place your php.ini file in the correct location. Derick Hopp3r wrote: Hello all. I have a site that was backed up, before the box was reformatted and rebuilt. Apache and PHP were upgraded. I have since resored all of the files and DB's that make up my site. Now, in doing some testing, the html forms are not passing variables to the next page. Specifically, these variables are the databse name, and the infor to be insereted into that database. My site uses frames, and it trying to pass the information from a form on one static page (menu) to the main window to display results. This used to work before I got the bright idea to upgrade. I have tried setting register_globals=on to see if that might help, but it had no effect. Has anyone else had, or is currently having issues like these? If you think you have any answer, please let me know. I will just about try anything to make this work again. Thanks, RC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] if syntax
Martin Clifford wrote: There are no brackets necessary if you only have one line of code to be executed in the case. For example: if($var == 1) echo Var equals 1; } else { echo Var does not equal 1; } This will certianly give a parse error, your sample should be: if ($var == 1) echo Var equals 1; else echo Var does not equal 1; But this is not valid: if($var == 1) echo Var equals ; echo 1; } else { } Again, the sample should look like (but ofcourse this one does not work): if ($var == 1) echo Var equals ; echo 1; else echo Var does not equal 1; HTH Martin Alexander Ross [EMAIL PROTECTED] 07/10/02 10:25AM I know this is correct: if ($something) { ... } else { ... } But I recently saw someone use this instead: if($something): ... else: ... Is that also correct?? No brackets needed? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Forms not passing variables
Hello, You reload the php.ini file by restarting your webserver, the correct location of php.ini can be found @ http://www.php.net/manual/en/faq.installation.php#faq.installation.phpini Derick Hopp3r wrote: Thanks Derick, You were right. globals is still off in phpinfo(). How does one make it reread the ini file, or where is correct location to copy my existing php.ini file? RC Derick Rethans [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hai, did you check the setting of register_globals really changed? See the phpinfo(); output if it's really set to on. If not, place your php.ini file in the correct location. Derick Hopp3r wrote: Hello all. I have a site that was backed up, before the box was reformatted and rebuilt. Apache and PHP were upgraded. I have since resored all of the files and DB's that make up my site. Now, in doing some testing, the html forms are not passing variables to the next page. Specifically, these variables are the databse name, and the infor to be insereted into that database. My site uses frames, and it trying to pass the information from a form on one static page (menu) to the main window to display results. This used to work before I got the bright idea to upgrade. I have tried setting register_globals=on to see if that might help, but it had no effect. Has anyone else had, or is currently having issues like these? If you think you have any answer, please let me know. I will just about try anything to make this work again. Thanks, RC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Crash Course on PHP WORKS :: Registering Globals
It's a much better idea to not do this, and change your code to use the $_GET and $_POST super globals for this. Derick Vins wrote: OK if you are running php on apache and your form variables don't pass through fire up your editor and edit php.ini and turn Register Globals ON Cheerz Until Next time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP gd-2.0
Mike, I suggest you try the latest snapshot http://snaps.php.net/php-latest.tar.gz and configure like this: ./configure --with-gd=php --other options This will use the bundled GD library, which is more current than any 'official' release. The PHP Dev Team decided to bundle it to make sure there are no more weird problems with PHP in combination with GD. Derick Mike wrote: Hello, I'm trying to use imagecreatetruecolor imagecopyresampled to resize some of my images. The problem is I can't get PHP Version 4.0.6 to recognize that I have gd-2.0 installed. I keep getting this error: Fatal error: imagecreatetruecolor(): requires GD 2.0 or later. I have these files in /usr/lib for gd : libgd.la libgd.so libgd.so.1 libgd.so.1.8 libgd.so.1.8.4 libgd.so.2 libgd.so.2.0.0 I installed php and gd by rpm. I did try to install gd from the source, Did make install with no errors. Not sure where to go from here. Thanks in advance for any help, Mike --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.371 / Virus Database: 206 - Release Date: 6/13/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: can I call a variable... using variables?
Joseph Szobody wrote: So here's what I'm trying to do: I have a form submitting dozens of variables called var1, var2, var3, .. and on and on. I want to check the value of each of these variables: for($i = 1;$i 100; $i++) { if($var$i 0) echo Yup. $var$i is greater than 0; } Do it like this: for ($i = 1; $i 100; $i++) { if (${var$i} 0) { echo Yup, $var$1 is greate than 0; } } Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: passing objects in url
Hello, this will not work, but what you can do is this: $ser = serialize($this); echo a href=foo.php?this=$serBar/a\n; and then do this in foo.php: $object = deserialize($_GET['this']); Another way could be to use sessions, which will be a lot easier to work with in this case. (http://www.php.net/session_start) Derick Alexander Ross wrote: If $this is an object, can I have the following link? a href=process_this.php?this=$thisProcess/a Will the URL become too long? Will teh info get passed correctly? thanks Alexander Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Functions list
Hello, César aracena wrote: I have the PHP manual in my PDA but its extraordinary large to search for a function. Does anybody know a Functions list that I can download for my PDA? I'm looking for something which shows the function and a short description of what it works for. function_name() = function_does_this http://cvs.php.net/co.php/phpdoc/funcsummary.txt Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Cookies
Hey, for good (and funny) tutorial on cookies: http://www.htmlgoodies.com/tutors/cookie.html you can find some examples here: http://www.php.net/manual/en/function.setcookie.php Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Xdebug 0.8.0 announcement
Hello! I'm happy to announce the latest version of the Xdebug extension for PHP 4.2.1 and 4.3.0-dev. This new version has a lot of new and improved functionality. This includes: - improved support for arguments to user defined functions - trace functions to trace function calls during the whole script (including included files) - PHP 4.2.1 compability - support for Windows - support for include, require and eval - new functions for enabling and disabling xdebug from php.ini and the script - new function to return the amount of used memory during script execution There are still a few points left on the road to Xdebug 1.0.0. These will be implemented in the near future: - Support for variable function names - Support for class names - Tracing variables in functions - Profiling You can find the source and binaries of the Xdebug extension at the project site at http://www.jdimedia.nl/xdebug.php. Derick --- Derick Rethans http://www.jdimedia.nl/derick/ JDI Media Solutions http://www.jdimedia.nl/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.2.1 release announcement
Hello, PHP 4.2.1 is released today, it's a bug fix release which addresses some serious bugs (and a lot of other little bugs) in 4.2.0. The full release announcement follows below: This bug fix release solves a few bugs found in PHP 4.2.0. PHP 4.2.1 includes the following fixes: * Fix for the MySQL extension not be able to connect to a MySQL server. * Fix for a crash in the COM extension when using an outproc server. * Fix for SID logic in the session extension. * Fixes for the mbstring extension, including SJIS directory name handling and mb_output_buffer(). * Fix for a bug in socket_select() that could cause unexpected behavior when using a statement like $w = $e = array($sock); * Almost full DOM compliance for the domxml extension, and fixes for several functions. * Safe_mode checks for show_source(), parse_ini_file() and rmdir(). For a full list of changes in PHP 4.2.1, see the NEWS file. (http://www.php.net/ChangeLog-4.php) Compatibility PHP 4.2.1 also has improved (but still experimental) support for Apache version 2. We do not recommend that you use this in a production environment, but feel free to test it and report bugs to the bug system. (http://bugs.php.net) External variables We would also like to attend you on a big change in PHP 4.2.0 concerning variable handling. External variables (from the environment, the HTTP request, cookies or the web server) are no longer registered in the global scope by default. The preferred method of accessing these external variables is by using the new Superglobal arrays, introduced in PHP 4.1.0. More information about this change: * PHP Manual: Predefined variables (http://www.php.net/manual/en/language.variables.predefined.php) * The PHP 4.1.0 release announcement (http://www.php.net/release_4_1_0.php) * Thomas Oertli's article on secure programming in PHP (http://www.zend.com/zend/art/art-oertli.php) regards, Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Xdebug extension availability
Hello, I'm happy to announce the availability of the xdebug extension. This extension modifies the php error handler to show stack traces. With this you can exactly see how the current function was called, even the parameters show up (if they are constants). I'm still working on variable parameters. Besides the stack traces the extension also provides the following functions: array xdebug_get_function_stack() - Returns an array which resembles a stack tracestring xdebug_call_function() - The name of the caller function string xdebug_call_file() - The file in which the caller function was run int xdebug_call_line() - The line in the caller file from which the current function was started See the website @ http://www.jdimedia.nl/derick/xdebug.php for more information and the download location. regards, Derick --- Did I help you? Consider a gift: http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B --- PHP: Scripting the Web - [EMAIL PROTECTED] All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.2.0 Release Announcement
The PHP Group is happy to announce the immediate availability of PHP 4.2.0, the latest version of the widely-used, general-purpose scripting language that is especially well-suited for Web development. This latest release contains over one hundred changes, bug fixes and improvements over the previous release, PHP 4.1.2. Among the highlights are experimental support for Apache 2, cleanups in variable handling and overhauls of various PHP components, including the domxml, posix, sockets and iconv extensions. For more information, see below: - External variables The biggest change in PHP 4.2.0 concerns variable handling. External variables (from the environment, the HTTP request, cookies or the web server) are no longer registered in the global scope by default. The preferred method of accessing these external variables is by using the new Superglobal arrays, introduced in PHP 4.1.0. More information about this change: * PHP Manual: Predefined variables http://www.php.net/manual/en/html/language.variables.predefined.html * The PHP 4.1.0 release announcement http://www.php.net/release_4_1_0.php * Thomas Oertli's article on secure programming in PHP http://www.zend.com/zend/art/art-oertli.php Compatibility The Apache Software Foundation recently released their first General Availability version of Apache 2. PHP 4.2.0 will have EXPERIMENTAL support for this version. You can build a DSO module for Apache 2 with --with-apxs2. We do not recommend that you use this in a production environment. PHP 4.2.0 still lacks certain key features on Mac OS X and Darwin, and isn't officially supported by the PHP Group on these platforms. Specifically, building PHP as a dynamically loaded Apache module isn't supported at this time. PHP 4.3.0, due to be released in August, 2002, will be the first PHP release to officially support Mac OS X. It, along with future Mac OS X and Apache releases, will enable full feature parity with other PHP platforms. Improvements PHP 4.2.0 includes several improvements: * External variables (from the environment, the HTTP request, cookies or the web server) are no longer registered as global variables * Overhaul of the sockets extension * Highly improved performance with file uploads * The satellite and mailparse extensions were moved to PECL and are no longer bundled with the official PHP release * The posix extension has been cleaned up * iconv handling has been improved * Output buffering support, which was introduced in PHP 4.1.0 has been stabilized * Improved performance and stability of the domxml extension * New multibyte regular expression support * LOTS of fixes and new functions For a full list of changes in PHP 4.2.0, see the NEWS file (http://www.php.net/ChangeLog-4.php). regards, Derick Rethans [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.2.0 Release Candidate 1
Hello, A release candidate for PHP 4.2.0 has just been packed. This build is used for testing the readiness of the release branch. By providing feedback to this build, we can make sure the actual release (planned for April, 22nd) has as few bugs as possible. This release candidate is NOT meant for production servers, only for helping out the PHP-QA Team finding week spots. You can help use by completing one of the following tasks: Simple build tests 1. Download the RC from: http://www.php.net/~derick/ - php-4.2.0RC1.tar.gz (Source) - php-4.2.0RC1-win32.zip (windows binaries: CLI, CGI, ISAP module and extensions: cpdf, ctype, cybercash, db, dbx, domxml, fdsql, fdf, filepro, gd, gettext, java, mhash, oci8, openssl, pdf, pgsql, shmop, sockets, tokeniser, w32api, xslt and zlib (all without libraries!!!) - php4apache.dll (apache 1.3.23 module for windows) 2. Build and test the RC 3. Provide feedback through: http://qa.php.net/buildtest-submit.php If you are really serious, you can also help us run testcases in the following ways: 1. Run 'make test' after you build from source (non-windows only) and provide feedback to [EMAIL PROTECTED] 2. Run testcases, which you can find on: http://qa.php.net/testcases-4.2.0.php These testcases address areas of PHP, which need some special attention during the Release Process. It's very important that you run these cases very thouroughly. You can provide feedback with http://qa.php.net/buildtest-submit.php (specify your testcase there). If you have any questions, please mail to the [EMAIL PROTECTED] mailinglist. regards, Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.1.1 released (minor update)
Due to a few bugs in PHP 4.1.0, we decided to release PHP 4.1.1. The bugs that were fixed are not major ones but minor ones, which could be annoying if you get bitten by them. Our recommendation is that people who already upgraded to PHP 4.1.0 do *not* upgrade to PHP 4.1.1, unless they're experiencing one of the described bugs. *No* new features or security updates are available in this release. Full list of fixes: - Fixed incompatibility with Windows .NET / IIS 6 - may improve stability under other versions of IIS. (Zeev) - Fixed bug that caused crashes or error notices on shutdown on threaded platforms. (Zeev) - Fixed several crash bugs in the xslt extension. (Markus, Derick) - Fixed problem with dbase not returning very large (larger than long) integers properly. (Vlad) - Fixed several bugs and memleaks in the domxml extension. (Markus) - Fixed bug in gmmktime() which was one hour off during standard time - bug #9878. Patch by [EMAIL PROTECTED] (jmoore) - Fixed bug in gmdate() timezone handling on Windows - bug #13885. (jmoore) - Fixed several crash bugs in the mcrypt extension. (Derick) - Made the mcrypt extension compile with the libmcrypt 2.2 series again. (Sterling) - Fixed a bug where the is_file() family of functions would in-correctly give an error when they were given filenames that didn't exist. (Sterling) - Fixed a bug in the strtotime() function where it was incorrectly recognizing GMT +0100 and GMT -0100. (Derick) Derick -- PHP General 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]
Re: Fw: [PHP] PHP 4.1 out?
Hello Mike, PHP 4.1.0 is NOT out yet. You pointed a lot of people to a build that may _not_ be bug free. The release is NOT out of QA yet. The release is only official if it is announced on the website. Derick Rethans The PHP QA Team On Wed, 28 Nov 2001, Richard Heyes wrote: Mike Eheler [EMAIL PROTECTED] scrawled: Try it: http://www.php.net/distributions/php-4.1.0.tar.gz No word on the website, though. Mike -- PHP General 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 General 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]
Re: [PHP] PHP 4.1 out?
Hello, Another thing, php 4.1.0 is NOT 4.1.0 RC3 Derick Rethans The PHP QA Team Mike Eheler [EMAIL PROTECTED] scrawled: Try it: http://www.php.net/distributions/php-4.1.0.tar.gz No word on the website, though. Mike -- PHP General 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-CVS] cvs: php4 /ext/rtfm EXPERIMENTAL
derick Wed Apr 25 14:10:14 2001 EDT Added files: /php4/ext/rtfm EXPERIMENTAL Log: - Marking this extension as EXPERIMENTAL -- PHP CVS 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-CVS] cvs: php4(PHP_4_0_5) /ext/mcrypt mcrypt.c
derick Wed Apr 18 02:48:39 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/mcryptmcrypt.c Log: - MFH (Bug #8839) Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.45.2.1 php4/ext/mcrypt/mcrypt.c:1.45.2.2 --- php4/ext/mcrypt/mcrypt.c:1.45.2.1 Sat Mar 17 06:55:24 2001 +++ php4/ext/mcrypt/mcrypt.cWed Apr 18 02:48:38 2001 @@ -339,36 +339,37 @@ return SUCCESS; } +#include "ext/standard/php_smart_str.h" + PHP_MINFO_FUNCTION(mcrypt) { #if HAVE_LIBMCRYPT24 char **modules; int i, count; - char *tmp, *tmp2; + smart_str tmp1 = {0}; + smart_str tmp2 = {0}; MCLS_FETCH(); - tmp = emalloc (2048); - memset (tmp, 0, sizeof(tmp)); modules = mcrypt_list_algorithms (MCG(algorithms_dir), count); if (count == 0) { - strcpy (tmp, "none"); + smart_str_appends (tmp1, "none"); } for (i = 0; i count; i++) { - strcat (tmp, modules[i]); - strcat (tmp, " "); + smart_str_appends (tmp1, modules[i]); + smart_str_appendc (tmp1, ' '); } + smart_str_0 (tmp1); mcrypt_free_p (modules, count); - tmp2 = emalloc (2048); - memset (tmp2, 0, sizeof(tmp2)); modules = mcrypt_list_modes (MCG(modes_dir), count); if (count == 0) { - strcpy (tmp2, "none"); + smart_str_appends (tmp2, "none"); } for (i = 0; i count; i++) { - strcat (tmp2, modules[i]); - strcat (tmp2, " "); + smart_str_appends (tmp2, modules[i]); + smart_str_appendc (tmp2, ' '); } + smart_str_0 (tmp2); mcrypt_free_p (modules, count); #endif @@ -379,10 +380,10 @@ #endif #if HAVE_LIBMCRYPT24 php_info_print_table_row(2, "version", "2.4.x"); - php_info_print_table_row(2, "Supported ciphers", tmp); - php_info_print_table_row(2, "Supported modes", tmp2); - efree (tmp2); - efree (tmp); + php_info_print_table_row(2, "Supported ciphers", tmp1.c); + php_info_print_table_row(2, "Supported modes", tmp2.c); + smart_str_free (tmp1); + smart_str_free (tmp2); #endif php_info_print_table_end(); @@ -436,9 +437,9 @@ { zval **key, **iv; zval **mcryptind; - char *key_s, *iv_s; + unsigned char *key_s, *iv_s; char dummy[256]; - int key_size, iv_size; + int max_key_size, iv_size; MCRYPT td; int argc; MCLS_FETCH(); @@ -450,21 +451,22 @@ ZEND_FETCH_RESOURCE (td, MCRYPT, mcryptind, -1, "MCrypt", MCG(le_h)); convert_to_string_ex (key); convert_to_string_ex (iv); - - key_size = mcrypt_enc_get_key_size (td); - key_s = emalloc (key_size + 1); - memset (key_s, 0, key_size + 1); + max_key_size = mcrypt_enc_get_key_size (td); iv_size = mcrypt_enc_get_iv_size (td); + + key_s = emalloc (Z_STRLEN_PP(key)); + memset (key_s, 0, Z_STRLEN_PP(key)); + iv_s = emalloc (iv_size + 1); memset (iv_s, 0, iv_size + 1); - if (Z_STRLEN_PP(key) != key_size) { - sprintf (dummy, "key size incorrect; supplied length: %d, needed: %d", - Z_STRLEN_PP(key), key_size); + if (Z_STRLEN_PP(key) max_key_size) { + sprintf (dummy, "key size too large; supplied length: %d, max: %d", + Z_STRLEN_PP(key), max_key_size); php_error (E_NOTICE, dummy); } - strncpy (key_s, Z_STRVAL_PP(key), key_size); + strncpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key)); if (Z_STRLEN_PP(iv) != iv_size) { sprintf (dummy, "iv size incorrect; supplied length: %d, needed: %d", @@ -473,7 +475,7 @@ } strncpy (iv_s, Z_STRVAL_PP(iv), iv_size); - RETVAL_LONG (mcrypt_generic_init (td, key_s, key_size, iv_s)); + RETVAL_LONG (mcrypt_generic_init (td, key_s, Z_STRLEN_PP(key), iv_s)); efree (iv_s); efree (key_s); } @@ -487,7 +489,7 @@ zval **data, **mcryptind; MCRYPT td; int argc; - char* data_s; + unsigned char* data_s; int block_size, data_size; MCLS_FETCH(); @@ -1294,7 +1296,7 @@ memset (data_s, 0, data_size); memcpy (data_s, Z_STRVAL_PP(data), Z_STRLEN_PP(data)); } - + if (mcrypt_generic_init (td, key_s, use_key_length, iv_s) 0) { php_error (E_ERROR, "generic_init failed"); } @@ -1307,10 +1309,10 @@ /* freeing vars */ mcrypt_generic_end (td); - if (iv_s != NULL) - efree (iv_s); if (key_s != NULL) efree (key_s); + if (iv_s != NULL) + efree (iv_s); efree (data_s); mcrypt_module_close
[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/mcrypt mcrypt.c
derick Wed Apr 18 15:15:39 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/mcryptmcrypt.c Log: - MFH (bug #8839 again) Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.45.2.2 php4/ext/mcrypt/mcrypt.c:1.45.2.3 --- php4/ext/mcrypt/mcrypt.c:1.45.2.2 Wed Apr 18 02:48:38 2001 +++ php4/ext/mcrypt/mcrypt.cWed Apr 18 15:15:39 2001 @@ -466,14 +466,14 @@ Z_STRLEN_PP(key), max_key_size); php_error (E_NOTICE, dummy); } - strncpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key)); + memcpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key)); if (Z_STRLEN_PP(iv) != iv_size) { sprintf (dummy, "iv size incorrect; supplied length: %d, needed: %d", Z_STRLEN_PP(iv), iv_size); php_error (E_WARNING, dummy); } - strncpy (iv_s, Z_STRVAL_PP(iv), iv_size); + memcpy (iv_s, Z_STRVAL_PP(iv), iv_size); RETVAL_LONG (mcrypt_generic_init (td, key_s, Z_STRLEN_PP(key), iv_s)); efree (iv_s); @@ -1236,13 +1236,15 @@ } key_length_sizes = mcrypt_enc_get_supported_key_sizes (td, count); if (count == 0 key_length_sizes == NULL) { /* all lengths 1 - k_l_s = OK */ - key_s = estrdup (Z_STRVAL_PP(key)); use_key_length = Z_STRLEN_PP(key); + key_s = emalloc (use_key_length); + memset (key_s, 0, use_key_length); + memcpy (key_s, Z_STRVAL_PP(key), use_key_length); } else if (count == 1) { /* only m_k_l = OK */ key_s = emalloc (key_length_sizes[0]); memset (key_s, 0, key_length_sizes[0]); - strcpy (key_s, Z_STRVAL_PP(key)); + memcpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key)); use_key_length = key_length_sizes[0]; } else { /* derterminating smallest supported key length of requested key */ @@ -1256,7 +1258,7 @@ } key_s = emalloc (use_key_length); memset (key_s, 0, use_key_length); - strcpy (key_s, Z_STRVAL_PP(key)); + memcpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key)); } mcrypt_free (key_length_sizes); -- PHP CVS 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-CVS] cvs: php4 / TODO-4.1.txt
derick Fri Apr 13 16:52:15 2001 EDT Modified files: /php4 TODO-4.1.txt Log: - Added the note about function names Index: php4/TODO-4.1.txt diff -u php4/TODO-4.1.txt:1.1 php4/TODO-4.1.txt:1.2 --- php4/TODO-4.1.txt:1.1 Fri Apr 13 13:47:12 2001 +++ php4/TODO-4.1.txt Fri Apr 13 16:52:15 2001 @@ -10,3 +10,5 @@ * move most extensions and PEAR packages out of the PHP CVS tree, include them again during release packaging +* renaming functions so that they all are conform to one standard form + -- PHP CVS 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]
Re: [PHP-CVS] cvs: php4 /ext/mcrypt mcrypt.c
Hello Guys, do you think this should be merged to the 4.0.5 branch? Otherwise Blowfish (and others) encrypted get initialised with a too long key. That caused them to be not compatible with encryptions/decryptions made by other programs. The second fix fixes a vulnarability in the assembly of the minfo lines. Derick On Tue, 10 Apr 2001, Derick Rethans wrote: /php4/ext/mcrypt mcrypt.c Log: - Fix for bug #8839 - MINFO updated to use smart_str's Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net - JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED] Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands - -- PHP CVS 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]
Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c
On Tue, 10 Apr 2001, Jason Greene wrote: Out of those platforms you listed, I have tested this on Linux. I will test FreeBSD today. However, I do not have an OpenBSD box, does anyone out there want to try and build the latest cvs with --enable-sockets on OpenBSD? I can test to build it... will do in 5 mins. Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net - JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED] Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands - -- PHP CVS 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]
Re: [PHP-CVS] cvs: pear /Science Chemistry.php /Science/ChemistryAtom.php Atom_PDB.php Coordinates.php Element.php Macromolecule.phpMacromolecule_PDB.php Molecule.php Molecule_XYZ.php PDBFile.php PDBPa
hrm, is it really needed to add 3.6MB of stuff to the PHP cvs? Derick - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net - JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED] Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands - -- PHP CVS 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-CVS] cvs: php4 /ext/mcrypt mcrypt.c
derick Mon Apr 9 17:07:54 2001 EDT Modified files: /php4/ext/mcryptmcrypt.c Log: - Fix for bug #8839 - MINFO updated to use smart_str's Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.46 php4/ext/mcrypt/mcrypt.c:1.47 --- php4/ext/mcrypt/mcrypt.c:1.46 Fri Mar 16 07:59:45 2001 +++ php4/ext/mcrypt/mcrypt.cMon Apr 9 17:07:53 2001 @@ -339,36 +339,38 @@ return SUCCESS; } +#include "ext/standard/php_smart_str.h" + PHP_MINFO_FUNCTION(mcrypt) { #if HAVE_LIBMCRYPT24 char **modules; int i, count; - char *tmp, *tmp2; + smart_str tmp1 = {0}; + smart_str tmp2 = {0}; MCLS_FETCH(); - tmp = emalloc (2048); - memset (tmp, 0, sizeof(tmp)); modules = mcrypt_list_algorithms (MCG(algorithms_dir), count); + printf ("boo\n"); if (count == 0) { - strcpy (tmp, "none"); + smart_str_appends (tmp1, "none"); } for (i = 0; i count; i++) { - strcat (tmp, modules[i]); - strcat (tmp, " "); + smart_str_appends (tmp1, modules[i]); + smart_str_appendc (tmp1, ' '); } + smart_str_0 (tmp1); mcrypt_free_p (modules, count); - tmp2 = emalloc (2048); - memset (tmp2, 0, sizeof(tmp2)); modules = mcrypt_list_modes (MCG(modes_dir), count); if (count == 0) { - strcpy (tmp2, "none"); + smart_str_appends (tmp2, "none"); } for (i = 0; i count; i++) { - strcat (tmp2, modules[i]); - strcat (tmp2, " "); + smart_str_appends (tmp2, modules[i]); + smart_str_appendc (tmp2, ' '); } + smart_str_0 (tmp2); mcrypt_free_p (modules, count); #endif @@ -379,10 +381,10 @@ #endif #if HAVE_LIBMCRYPT24 php_info_print_table_row(2, "version", "2.4.x"); - php_info_print_table_row(2, "Supported ciphers", tmp); - php_info_print_table_row(2, "Supported modes", tmp2); - efree (tmp2); - efree (tmp); + php_info_print_table_row(2, "Supported ciphers", tmp1.c); + php_info_print_table_row(2, "Supported modes", tmp2.c); + smart_str_free (tmp1); + smart_str_free (tmp2); #endif php_info_print_table_end(); @@ -436,9 +438,9 @@ { zval **key, **iv; zval **mcryptind; - char *key_s, *iv_s; + unsigned char *key_s, *iv_s; char dummy[256]; - int key_size, iv_size; + int max_key_size, iv_size; MCRYPT td; int argc; MCLS_FETCH(); @@ -450,21 +452,22 @@ ZEND_FETCH_RESOURCE (td, MCRYPT, mcryptind, -1, "MCrypt", MCG(le_h)); convert_to_string_ex (key); convert_to_string_ex (iv); - - key_size = mcrypt_enc_get_key_size (td); - key_s = emalloc (key_size + 1); - memset (key_s, 0, key_size + 1); + max_key_size = mcrypt_enc_get_key_size (td); iv_size = mcrypt_enc_get_iv_size (td); + + key_s = emalloc (Z_STRLEN_PP(key)); + memset (key_s, 0, Z_STRLEN_PP(key)); + iv_s = emalloc (iv_size + 1); memset (iv_s, 0, iv_size + 1); - if (Z_STRLEN_PP(key) != key_size) { - sprintf (dummy, "key size incorrect; supplied length: %d, needed: %d", - Z_STRLEN_PP(key), key_size); + if (Z_STRLEN_PP(key) max_key_size) { + sprintf (dummy, "key size too large; supplied length: %d, max: %d", + Z_STRLEN_PP(key), max_key_size); php_error (E_NOTICE, dummy); } - strncpy (key_s, Z_STRVAL_PP(key), key_size); + strncpy (key_s, Z_STRVAL_PP(key), Z_STRLEN_PP(key)); if (Z_STRLEN_PP(iv) != iv_size) { sprintf (dummy, "iv size incorrect; supplied length: %d, needed: %d", @@ -473,7 +476,7 @@ } strncpy (iv_s, Z_STRVAL_PP(iv), iv_size); - RETVAL_LONG (mcrypt_generic_init (td, key_s, key_size, iv_s)); + RETVAL_LONG (mcrypt_generic_init (td, key_s, Z_STRLEN_PP(key), iv_s)); efree (iv_s); efree (key_s); } @@ -487,7 +490,7 @@ zval **data, **mcryptind; MCRYPT td; int argc; - char* data_s; + unsigned char* data_s; int block_size, data_size; MCLS_FETCH(); @@ -1294,7 +1297,7 @@ memset (data_s, 0, data_size); memcpy (data_s, Z_STRVAL_PP(data), Z_STRLEN_PP(data)); } - + if (mcrypt_generic_init (td, key_s, use_key_length, iv_s) 0) { php_error (E_ERROR, "generic_init failed"); } -- PHP CVS 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-CVS] cvs: php4 /ext/mcrypt mcrypt.c
derick Mon Apr 9 17:09:18 2001 EDT Modified files: /php4/ext/mcryptmcrypt.c Log: - Removed debug thing Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.47 php4/ext/mcrypt/mcrypt.c:1.48 --- php4/ext/mcrypt/mcrypt.c:1.47 Mon Apr 9 17:07:53 2001 +++ php4/ext/mcrypt/mcrypt.cMon Apr 9 17:09:17 2001 @@ -351,7 +351,6 @@ MCLS_FETCH(); modules = mcrypt_list_algorithms (MCG(algorithms_dir), count); - printf ("boo\n"); if (count == 0) { smart_str_appends (tmp1, "none"); } -- PHP CVS 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]
Re: [PHP-CVS] cvs: php4 / Makefile.in configure.in /main build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi config.m4
On Sun, 8 Apr 2001, Stig Bakken wrote: * CGI version is always installed! Do we want this? I don't actually. It would be nice if the cgi build could be disabled. Regards, Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net - -- PHP CVS 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-CVS] cvs: php4 /ext/standard formatted_print.c
derick Tue Mar 27 09:21:45 2001 EDT Modified files: /php4/ext/standard formatted_print.c Log: - 'Fix' for bug 10002 Index: php4/ext/standard/formatted_print.c diff -u php4/ext/standard/formatted_print.c:1.28 php4/ext/standard/formatted_print.c:1.29 --- php4/ext/standard/formatted_print.c:1.28Sun Feb 25 22:07:17 2001 +++ php4/ext/standard/formatted_print.c Tue Mar 27 09:21:45 2001 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: formatted_print.c,v 1.28 2001/02/26 06:07:17 andi Exp $ */ +/* $Id: formatted_print.c,v 1.29 2001/03/27 17:21:45 derick Exp $ */ #include math.h /* modf() */ #include "php.h" @@ -92,7 +92,7 @@ while (p1 cvt_buf[NDIG]) *p++ = *p1++; } else if (arg 0) { - while ((fj = arg * 10) 1) { + while ((fj = arg * 10.0) 0.999) { arg = fj; r2--; } -- PHP CVS 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-CVS] cvs: php4(PHP_4_0_5) /ext/standard formatted_print.c
derick Tue Mar 27 09:24:01 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/standard formatted_print.c Log: - MFH (Fix for bug 10002) Index: php4/ext/standard/formatted_print.c diff -u php4/ext/standard/formatted_print.c:1.28 php4/ext/standard/formatted_print.c:1.28.2.1 --- php4/ext/standard/formatted_print.c:1.28Sun Feb 25 22:07:17 2001 +++ php4/ext/standard/formatted_print.c Tue Mar 27 09:24:01 2001 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: formatted_print.c,v 1.28 2001/02/26 06:07:17 andi Exp $ */ +/* $Id: formatted_print.c,v 1.28.2.1 2001/03/27 17:24:01 derick Exp $ */ #include math.h /* modf() */ #include "php.h" @@ -92,7 +92,7 @@ while (p1 cvt_buf[NDIG]) *p++ = *p1++; } else if (arg 0) { - while ((fj = arg * 10) 1) { + while ((fj = arg * 10.0) 0.999) { arg = fj; r2--; } -- PHP CVS 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]
Re: [PHP-CVS] cvs: php4 /sapi/fastcgi fastcgi.c
On Thu, 22 Mar 2001, Ben Mansell wrote: joosters Thu Mar 22 10:48:51 2001 EDT Modified files: /php4/sapi/fastcgifastcgi.c Log: Fix a bug with POST requests. If the Content-Type header wasn't present, we were setting SG(request_info).content_type to NULL, instead of an empty string. This was stopping PHP from processing the data. I think it should be nice if this fix (and the CGI SAPI fix too) would be added to the PHP_4_0_5 branch too. Goodnight, Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net - JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED] Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands - -- PHP CVS 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-CVS] cvs: php4(PHP_4_0_5) /ext/mcrypt mcrypt.c
derick Sat Mar 17 06:55:24 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/mcryptmcrypt.c Log: - MFH (memleak fix) Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.45 php4/ext/mcrypt/mcrypt.c:1.45.2.1 --- php4/ext/mcrypt/mcrypt.c:1.45 Sun Feb 25 22:07:02 2001 +++ php4/ext/mcrypt/mcrypt.cSat Mar 17 06:55:24 2001 @@ -1211,7 +1211,7 @@ int block_size, max_key_length, use_key_length, i, count, iv_size; unsigned long int data_size; int *key_length_sizes; - char *key_s, *iv_s; + char *key_s = NULL, *iv_s; char *data_s; MCRYPT td; MCLS_FETCH(); @@ -1309,6 +1309,8 @@ mcrypt_generic_end (td); if (iv_s != NULL) efree (iv_s); + if (key_s != NULL) + efree (key_s); efree (data_s); mcrypt_module_close (td); } -- PHP CVS 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-CVS] cvs: php4 /ext/mcrypt mcrypt.c
derick Fri Mar 16 07:59:46 2001 EDT Modified files: /php4/ext/mcryptmcrypt.c Log: - Fixed mem leak Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.45 php4/ext/mcrypt/mcrypt.c:1.46 --- php4/ext/mcrypt/mcrypt.c:1.45 Sun Feb 25 22:07:02 2001 +++ php4/ext/mcrypt/mcrypt.cFri Mar 16 07:59:45 2001 @@ -1211,7 +1211,7 @@ int block_size, max_key_length, use_key_length, i, count, iv_size; unsigned long int data_size; int *key_length_sizes; - char *key_s, *iv_s; + char *key_s = NULL, *iv_s; char *data_s; MCRYPT td; MCLS_FETCH(); @@ -1307,6 +1307,8 @@ /* freeing vars */ mcrypt_generic_end (td); + if (key_s != NULL) + efree (key_s); if (iv_s != NULL) efree (iv_s); efree (data_s); -- PHP CVS 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]
Re: [PHP-CVS] cvs: php4 /ext/mysql php_mysql.c php_mysql.h
On Tue, 13 Mar 2001, Zeev Suraski wrote: zeev Tue Mar 13 14:52:53 2001 EDT Modified files: /php4/ext/mysql php_mysql.c php_mysql.h Log: Implement mysql_unbuffered_query() - uses mysql_use_result() instead of mysql_store_result() Don't you think this belongs in the NEWS file too? Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net - JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED] Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands - -- PHP CVS 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]
Re: [PHP-CVS] RE: [PHP-CVS-DAILY] cvs: php4 / ChangeLog
You can ubsubscribe form this list as described in the footer: To unsubscribe, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] - -- PHP CVS 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]