Menu

#3 Fix for PHP5 "Non-static method" error

open
nobody
None
5
2005-10-20
2005-10-20
No

Here is a patch that fixes the "Non-static method
cannot be called statically" error you give if running
with PHP5. I am running with PHP v5.0.4, so this is
the only version I know this patch fixes.

The basic change was to move the encode_url() and
decode_url() out of the PHProxy constructor and into
the PHProxy class. Then updated any calls to the two
methods, to access them correctly.

Discussion

  • Brian Birrell

    Brian Birrell - 2005-10-20
     
  • Nobody/Anonymous

    Logged In: NO

    Here are some quick instructions to apply my patch.

    To use the patch, extract it into a work directory. Then
    create a directory
    called "phproxy-0.4", extract the official archive into this
    directory. So
    given your in the working directory then you should see the
    patch file and the
    "phproxy-0.4" directory, and the phproxy-0.4" directory
    should contain all the
    files from the official release. Now just run the following
    command.

    patch -p0 < "patchfile"

    You should now have a copy of phproxy v0.4 with my patch
    applied.

     
  • Nobody/Anonymous

    Logged In: NO

    would anyone plz upload a patched copy, for many people,
    including me, are using windows, not linux. thanks!

     
  • Nobody/Anonymous

    Logged In: NO

    The patch worked like a charm for me. Thanks for providing it.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.