I need to install this patch in my PHP code:
Can any body explain how?
My PHP Version : 5.4.10
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You must have the source and patch file before you can patch it. Its quite simple.
patch -p0 < /path/to/patch.patchIf it shows an error, undo it by
patch -R < /path/to/patch.patch. and adjust the -p num value. and go to step 2. Here -p is the smallest prefix containing num leading slashes from each file name found in the patch file. A sequence of one or more adjacent slashes is counted as a single slash. This controls how file names found in the patch file are treated, in case you keep your files in a different directory than the person who sent out the patch. For example, supposing the file name in the patch file wassetting
-p0gives the entire file name unmodified,-p1giveswithout the leading slash,
-p4givesand not specifying
-pat all just gives youblurfl.c. Whatever you end up with is looked for either in the current directory, or the directory specified by the-doption.The number after
-pcan be determined by followingREADME.UNIX-BUILD-SYSTEMfile and for Windows useREADME.WIN32-BUILD-SYSTEMfile.