Hi all,

I was trying to patch PHP 4.0.6 with the file upload security bug fix patch by issuing the following command
patch -p0 < thepatch.txt
in
php-4.0.6/main/

but I'm getting an error.

Anybody is getting the same error.
Thanks
Joe

    All that is downlaoded is some "do_download.php", and inside it has no readme or 'do this and do that' to apply.

    What gives?

    If this goes into "php-4.0.6/main" ... whats it called, does it replace anything... does it auto get added on a recompile?

    Do you have to recompile? Or can you apply this like REAL patches are applied? Or does that concept just escape the feeble text-based-minds of the creators ...

    Their lack of any sort of doc on php.net is appalling.

      • [deleted]

      Your lack of IQ is really frightning.

        I'm with you. I issue this command:

        "patch rfc1867.c rfc1867.c.diff-4.0.6"

        and I get this output:

        Hmm... Looks like a unified diff to me...

        The text leading up to this was:

        |--- rfc1867.c.1.62.2.1 Tue Jun 19 18:54:44 2001

        |+++ rfc1867.c Tue Feb 26 15:52:55 2002

        Patching file rfc1867.c using Plan A...
        patch: **** malformed patch at line 9: ;

        I'm (of course) running php 4.0.6. I'm no stranger to compiling php and anything else, but I've never needed to apply a patch before. I don't want to upgrade to 4.1.2 because 4.0.6 is very stable and I want to wait a while for 4.1.x to mature before upgrading (I have a mission critical environment).

        Anyone apply this patch? I assume a million people have at least tried to apply it.

        Thanks in advance.

        Bob

          Don't insult his intelligence, some people are new and are not BORN WITH A LINUX SYS ADMIN MANUAL

          so if anybody has the answer without being a wise ass, it would help the poeple that come here and help build this board. Maybe the admin of this site would appreciate to hear the newer developers leave 'cause they get kicked around too much

          So, how do you apply the patch, can somebody help him?

            I had the same problem. The solution is to download the patch again. It appears that those of us that tried to install the patch first got a bad patch. After downloading the new patch, it worked perfectly.

            Nice of them not telling us there was an issue once they fixed it.

            Tim

              Did you maybe direct your message to the wrong person? I was hardly being a wise ass and was actually having the same problem. Maybe you meant to reply to vincent?

              Bob

                Bob>>Yes, not you

                Sorry, I wasn't clear

                I am just angry when people get bashed and answers to q's are left out

                sorry

                  • [deleted]

                  Maybe if you read the rest of the posts you'd know that this question has been asked and answered 15 times, and most importantly the way that this guy asked his questions before is hardly polite, nor intelligent.

                  Make sure you know what you're talking about before you make the old chewed-out "don't be a wiseass" remark.

                  I don't go around telling people their stupid unless I have a reason. In this case a had a reason.

                    Considering that the security patch was just released a couple days ago and there was only a few message threads on the topic (which none answered) I think you got a little ahead of yourself with your "stupid" comment.

                    Sounds to me that more than one person is ignorant around here, and quick to judge to boot. Or maybe you didn't even understand his question?

                    So please, all mightly one, show us where this question was asked and answered.

                    Bob

                      Vincent,

                      I asked the question within few hours the patch has been released. Based on what did you comment that the question similar to this has been answered more than 15 times?

                      Do you know how to do linux system administration since day one you're born?

                      Newbies need guidance, not ignorant posts from you.

                      Later
                      Joe

                        • [deleted]

                        sigh

                        "I asked the question within few hours the patch has been released. Based on what did you comment that the question similar to this has been answered more than 15 times?"

                        Newsflash: this is not the first patch to ever be released for PHP. Maybe if you actually tried to find some more info yourself instead of getting pissed at PHP, you'd know that, and you would have found plenty solutions.
                        (BTW, if you are that pissed at the PHP boys, maybe you should complain to THEM instead?)

                        "Do you know how to do linux system administration since day one you're born?"

                        No, I seem to be one of the few people here intelligent enough to actually find some things out for themselves. It's not like you're sitting there behind a large desk with just a blank piece of paper, you've got the knowledge of the world at your fingertips through internet. Is it really that hard to imagine that you actually USE it?

                        "Newbies need guidance, not ignorant posts from you."

                        Newbees need guidance, and you know very fcking well that I spend most my time guiding newbies and solving their problems. Why the fck do you think I put up YAPF? Did you think I wrote all those articles just because I had some f*cking spare time?

                        One thing that newbies should realize is learning new things means that you actually try to gain knowledge yourself, not sit on your fat lazy ass posting stupid posts because you don't get everything spoonfed.

                        Welcome to the real world where some things actually require YOU to do something.

                        Now enough of this sh*t: End Of Thread.

                          News flash vincent! This patch was different because there was a problem with the first release and NO ONE could get it to work. It was silently updated to a fixed patch that did work. Therefore, his problem was unique and was not discussed 15 times.

                          PLEASE! If you KNOW this issue was discussed 15 times, SHOW US! But, you can't so you're just blowing your top over nothing. Just shut up if you don't have anything nice to say, okay? Didn't your mommy teach you that?

                          Bob

                            Vincent,

                            Now I'm fcking pissed of by your god damn fcking ignorant attitude.

                            As Bob said, the patch has been silently fixed! Even if we searched on how to do a patch in this forum archives, we won't get any f*cking results because it can't be patched at all!!!

                            What's so great about writing articles when you can't even answer a simple question patiently?! And BTW if you open your eyes wide enough, you will see that I didn't make the post regarding how to patch the PHP.

                            Please Vincent, think twice before you made some comment. We're always ready to forgive you.

                            Joe

                              • [deleted]

                              Idiots, gotta love em!

                                Your lack of EQ is really frightening.

                                  • [deleted]

                                  EQ?

                                    Emotional Quotient my son.

                                      We know you love yourself. That's quite obvious. It's also funny how you stated that it was asked and answered 15 times yet you still haven't found a single thread as you claim.

                                      Honestly, you didn't have to call yourself an idiot, we already knew.

                                      Tim

                                        Write a Reply...