SitePoint Sponsor

User Tag List

Results 1 to 14 of 14
  1. #1
    purple monkey dishwasher scoates's Avatar
    Join Date
    Nov 2001
    Location
    Montreal
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP4.2.0 Available

    From the PHP-Announce Mailing List:

    Mailing-List: contact php-announce-help@lists.php.net; run by ezmlm
    X-No-Archive: yes
    Delivered-To: mailing list php-announce@lists.php.net
    Delivered-To: moderator for php-announce@lists.php.net
    Date: Mon, 22 Apr 2002 22:55:14 +0200 (CEST)
    From: Derick Rethans <derick@php.net>
    X-X-Sender: derick@jdi.jdimedia.nl
    To: php-announce@lists.php.net
    cc: PHP Developers Mailing List <php-dev@lists.php.net>,
    PHP Quality Assurance Team Mailing List <php-qa@lists.php.net>,
    <php-general@lists.php.net>
    Subject: [ANNOUNCE] 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/la...redefined.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
    derick@php.net







    --
    PHP Announcements Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php
    I'll be waiting a little bit before migration, but it seems very stable (I was even playing with 4.3.0 from CVS, today, and it compiled without a hitch (except that tempnam thing I always get (-: )).

    S

  2. #2
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yep. don't even have to wait for a Windows version this time.

    some things that caught my eye; most notably:

    ATTENTION!! register_globals defaults to 'off' now !!!
    hallelujah!

    some nice things:

    • Added md5_file() function which calculates the MD5 sum of a file.
    • Changed rand() and mt_rand() to be seed automatically if srand() or mt_srand() has not been called.
    • Fixed nl2br() to handle all styles of line-endings in one string. (i assume this means nl2br() will work with \r only newlines (e.g. Mac); i'll see.)
    • Highly improved performance with file uploads



    now we just wait to see how many scripts get broken with register_globals off.
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR

  3. #3
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yep yep!

    why not make this post sticky for the time being? just a suggestion

  4. #4
    SitePoint Addict Clete2's Avatar
    Join Date
    Mar 2002
    Location
    Columbia, South Carolina
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i can't get to php.net... anyone else having probs?
    My Blog
    My Photography Website
    Linux user #339185

  5. #5
    purple monkey dishwasher scoates's Avatar
    Join Date
    Nov 2001
    Location
    Montreal
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I imagine they're flooded with release requests.

    You should (almost) always be using a mirror, anyway:
    http://php.ca/mirrors.php

    S

  6. #6
    SitePoint Wizard jonese's Avatar
    Join Date
    Jul 1999
    Location
    Powder Springs GA (Atlanta)
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP DB Admin

    Well i can tell you that PHP My Admin and PHP PG Admin was hurt by the register globals being turned off. and even turning them on doesn't seem to help things out.

    I went from 4.2 but it killed my login scripts so i had to digress back to 4.1.2 until i can get a test environment up and figure out what is going on!

    Lesson learned today kids: Development servers are not an expensive toy, but a must for proper development strategies.

  7. #7
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: PHP DB Admin

    Originally posted by jonese
    Well i can tell you that PHP My Admin and PHP PG Admin was hurt by the register globals being turned off
    Get a later version of phpMyAdmin then, I have been using it for months with register_globals off

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  8. #8
    Gone!
    Join Date
    Aug 2001
    Location
    Witty Location Parody
    Posts
    3,889
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone want to explain to differences between those global thingies being off and on, and what the pros and cons of each are.

    Sorry, but Ive only really just got past looking at the water, still thinking about putting my whole toe in.

  9. #9
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by glenplake
    Anyone want to explain to differences between those global thingies being off and on, and what the pros and cons of each are.

    Sorry, but Ive only really just got past looking at the water, still thinking about putting my whole toe in.
    see the register_globals section in my PHP and MySQL coding tips thread.
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR

  10. #10
    SitePoint Enthusiast MaRkY's Avatar
    Join Date
    Dec 2001
    Location
    Spain
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    now we just wait to see how many scripts get broken with register_globals off.
    VBulletin announcement.

    PHP 4.2.0 has recently been launched, and there have been a few reported problems with vBulletin.
    To fix these, make sure that you have got register_globals turned ON in your php.ini file. If you need help with this, please contact your host.

    This should address any issues that you have been having with vBulletin/PHP compatibility.

    John
    This will be a big change for a lot of scripts.

  11. #11
    SitePoint Wizard Mincer's Avatar
    Join Date
    Mar 2001
    Location
    London | UK
    Posts
    1,140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've had 4.2.0 for a few days and I still can't get it to run with Apache 2.

    When I add the loadmodule line to the http.conf file, Apache will not restart.

    Has anyone else had this problem, or know of a solution?

    TIA.

  12. #12
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you using the correct module? You need to use apache2filter.dll

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  13. #13
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes, if you're on Windows you need to use `experimental/apache2filter.dll' instead of `sapi/php4apache.dll', as Sean said. if you're using Linux or something, though, you need to compile PHP with the `--with-apxs2' option. that'll give you Apache 2 support in libphp4.so.
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR

  14. #14
    SitePoint Wizard Mincer's Avatar
    Join Date
    Mar 2001
    Location
    London | UK
    Posts
    1,140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers guys.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •