Slashdot Mirror


PHP 5 Beta 1

Sterling Hughes writes "The PHP development community is proud to announce the release of PHP 5 Beta 1. Downloads are available in both source and binary form (for Windows users). A full list of changes is available in the ChangeLog. Some of the new features include much improved OO support, completely revamped XML support, and the default inclusion of SQLite."

16 of 398 comments (clear)

  1. Re:mysql? by Triumph+The+Insult+C · · Score: 5, Informative

    --with-mysql=/path/to/mysql

    bundled being the key word

    --
    vodka, straight up, thank you!
  2. Re:They pulled MySQL out! by CausticWindow · · Score: 5, Informative

    Check this thread on Google groups.

    --
    How small a thought it takes to fill a whole life
  3. Re:They pulled MySQL out! by Triumph+The+Insult+C · · Score: 3, Informative

    what's so difficult about using your own mysql installation? this refers to the bundled libraries. aside from changes mysql has made to 4.1, this is a non-issue.

    maybe this will get them to included a bundled version of postgres

    --
    vodka, straight up, thank you!
  4. Re:Problems with newer versions by larry+bagina · · Score: 5, Informative
    I agree. Even though there are huge differences between version 3 and version 4 (and now version 5), there are also lots of differences between minor versions -- stuff like new functions, changes to how functions work (beyond just bug fixes), etc. Nevermind that there are hundreds of optional libraries and setup parameters, making every installation unique.

    If you're doing a non-trivial php site, and trying to make it work with different versions of php (osCommerce, for example), you end up having to rewrite many functions yourself to make sure they work consistently.

    I like PHP, but it suffers from an "incrementalism" design approach. Some stuff really needs to be rethought, and I think PHP 5 is on the right track to doing that.

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

  5. Here's the word by john_smith_45678 · · Score: 3, Informative

    On Sat, 28 Jun 2003, Marc Richards wrote:
    > I apologies if this is the wrong place for asking. Is non-experimental
    > Apache2 support planned for PHP 5?

    Nope. Until someone sits down and goes through every 3rd-party library that can be linked into PHP on every platform and identifies whether or not they are threadsafe and under which conditions they remain threadsafe, using PHP in a threaded web server on UNIX is going to remain experimental.

    You can of course stick with non-threaded prefork mode, in which case you basically have Apache-1.3.x. Nobody so far have been motivated to test Apache2-prefork+PHP extensively, so even that combination is going to remain experimental.

    The basic problem here is that the average UNIX library has not been written with thread safety in mind. You can write very good specific threaded programs on UNIX, but it is extremely difficult to write something which can potentially link in hundreds of random libraries and expect them to all be threadsafe.

    -Rasmus

    http://news.php.net/article.php?group=php.internal s&article=%3CPine.LNX.4.56.0306272256280.6461%40th inkpad.lerdorf.com%3E

  6. Re:Still re-coding for register_global_variables.. by FryGuy1013 · · Score: 5, Informative

    um..

    extract($_POST);
    extract($_GET);
    extract($_COO KIE);

    ?

    --
    bananas like monkeys.
  7. Re:XML transformation pipeline by jojo80 · · Score: 3, Informative

    Something like that already exists...it's called popoon and part of the bitflux cms project.

  8. Re:Kiss and say goodbye to Java language!! by HeadDown · · Score: 3, Informative

    > No Java, no JSP man. Simply use PHP for web development.
    > Forget Java man and go to PHP!
    >
    > PHP is 4 times faster than Java technology 'JSP' (Java server
    > pages).

    Substantiate that statement. What benchmark, what workload, etc.

    > This tallies because compiled "C" program is 4 times faster than
    > Java.

    PHP scripts are re-interpreted, at runtime, *for every page hit*.
    They're not C.

    > Moreover, PHP is getting the object oriented features of Java
    > language.

    Yeah, *finally*. Partially. This is the 1st go. Java was designed from
    the start to be OO, it isn't hobbled on like with PHP.

    > The real usefulness of Java is 'Java applets' which run on
    > client browsers but on the server side you simply use PHP.

    Substantiate.

    > PHP is a very lightening fast object oriented scripting
    > language. PHP is 100% written in "C" and there is no virtual
    > machine as in Java. Nothing can beat "C" language ("C" is a
    > language which never dies!!)

    Jeez, moron. What do you think the JVM is written in?

    > (Java is just another language. The PHP project needs millions
    > of Java programmers who can add the Java's language features
    > like inner classes, static, private, protected and others to
    > PHP. PHP already has some of java' features).
    > Java programmers will really "LOVE" PHP as PHP class is
    > identical to Java's class keyword.

    I use Java and PHP, and I *loathe* PHP. It's single redeeming feature
    is that it's everywhere. For the rest, it's a language with crappy
    library support, that actively emcourages mixing the presentation and
    business layer.

    > Read the benchmars of Java JSP and PHP. PHP tops in the speed!!

    Substantiate.

  9. Re:Kiss and say goodbye to Java language!! by crunchywelch · · Score: 4, Informative

    Uh, none of those links work, however here is a *recent* comparison of JSP and PHP using several different containers for JSP and PHP. It seems that the server setup has a great deal to do with the speed of the application (duh).

    It's interesting that people like to make comparisons to JSP and ASP all the time but don't remark on what platform they run on. Obviously JSP running on tomcat/apache through with mod_jk will be slower than with just plain Resin.

    And open should note that a statement like ' Kiss and say goodbye to Java language!!' almost sounds like a troll, when you consider Java is used for a great deal more than web applications, indeed the servlet functionality that JSP relies on is a *very* small portion of the overall tools that Java supplies to developers.

    But whatever, use the right tool for the job and try to remember it's technology, not religion. The more options the better IMO.....

    --
    1400x1250 in a 640x480 world...
  10. FREE!! -- PHP Encoder and Cacheing -- FREE!!! by Anonymous Coward · · Score: 5, Informative

    Yes yes.. To sooth all the scalp scratching surrounding PHP and FREE (quality) cacheing and encoding look no futher than

    MMcache - http://www.turcksoft.com/en/e_mmc.htm

    It's only a split second .001 slower than zend (faster than PHP Accelerator) and it FREE! Did I mention it works with Zend Optimizer , Zend Encoder and it can also Encode (protect) PHP files?

    I'm too damn good to you people! ; )


    PS: PHP makes programming fun again. Thats why people like to use it. Simple really.

  11. Re:Yeah Yeah... by eadz · · Score: 3, Informative

    I don't mind so much the fact that you can't have servlet-like objects which handle entire sections of your URLspace
    You can! Use a PHP file instead of a directory for your DocumentRoot in apache.
    I.e DocumentRoot /var/www/servlet.php
    Now all requests are handled by servlet.php.

  12. PHP 5 Documentation update by aint · · Score: 4, Informative

    PHP 5 isn't really documented in the PHP 5 manual yet as there are still a few features on the move, and new features to come, but here's a list of PHP 5 related articles and presentations:

    Faq: Where can I get more information about PHP5?

    Enjoy!

  13. Re:Yeah Yeah... by Second_Derivative · · Score: 4, Informative

    Nah, I reckon one could handle it like this...

    <VirtualHost *>
    ServerName www.myhost.com
    DocumentRoot /home/myhost/engine.php
    Alias /res /home/myhost/resources
    </VirtualHost> ... or something. I tried it on my server and it seems to work a treat. Once again cheers for the tip

  14. Re:Requires Microsoft Visual C++ by Anonymous Coward · · Score: 3, Informative

    MySQL isn't bundled with it, but you can easily add it yourself when compiling.

    Compiling?

    Compiling PHP for Windows requires the Microsoft Visual C++ compiler version 6.0 or later.


    Exactly version 6.0, not "later" (because you can't compile/link with GPL stuff with the 7.0/.NET compiler due to licensing restrictions).

  15. Re: Just use PEAR/DB by PizzaFace · · Score: 4, Informative

    Instead of ODBC, you'd be better off using the pear/db module as middleware. It supports more databases (mysql, odbc, sqlite, pgsql, etc.) and if it isn't the future standard for database access in PHP, something like it will be.

    I've been using PHP's built-in (until now) MySQL functions, because they're faster than pear/db, but this licensing dust-up has convinced me that portability among database vendors is worth a performance hit. And the pear/db module is getting increasing attention and is likely to get faster.

  16. Re:Yeah Yeah... by pacman+on+prozac · · Score: 4, Informative

    My biggest complaint about PHP is the joke that they pass as "error handling". Yeah great, thanks for exposing all my path names to the outside world if something goes wrong.

    Psychic abilities will be added to PHP as of version 6.6.6. From here on you will be able to simply think of the configuration you want and it will be set in php.ini. No longer will you have to read the extremely comprehensive online docs including the manual and especially not the ENTIRE SECTION dedicated to error reporting and logging that tells you extremely clearly how to do what you have just complained is impossible. You would not need to read that page and find the two links within the 1st side that show very clearly information on the display errors, error_log for custom logs and of course log errors to put the errors in the apache logfile.

    Your biggest complaint is that you are too lazy to read the manual and you expect everything to be done for you. No programming language can help you with this.