Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 962169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:27:45+00:00 2026-05-16T01:27:45+00:00

I’m integrating PayPal in an application written in PHP and running on PHP 5.3.1

  • 0

I’m integrating PayPal in an application written in PHP and running on PHP 5.3.1 (using Zend Engine 2.3.0).
Every time I require a PayPal SDK file or use any of the methods it prints out an enormous amount of error and warning messages.
I obviously want to keep error message reporting at the maximum level possible (at least for my code).

My problem is similar to this one (I didn’t write that) https://www.x.com/message/167121#167121

I’m concerned with possible security issues and with the obvious annoying amount of messages going into the log.

Do you have any idea of how to fix/work around this?

Thanks 🙂

EDIT:
A sample from the warning list (there are more):

As an example (but there are more):

Strict Standards: Assigning the return
value of new by reference is
deprecated in (…)/PayPal.php on line
87

Strict Standards: Assigning the return
value of new by reference is
deprecated in (…)/PayPal.php on line
115

Strict Standards: Declaration of
PayPal::raiseError() should be
compatible with that of
PEAR::raiseError() in (…)/PayPal.php
on line 198

Strict Standards: Assigning the return
value of new by reference is
deprecated in (…)/PayPal/Hack.php on
line 78

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Value.php on line 90

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Value.php on line 93

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Base.php on line 221

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Base.php on line 514

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Base.php on line 616

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Base.php on line 617

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Base.php on line 760

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Base.php on line 897

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Base.php on line
1055

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Base.php on line
1083

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Base.php on line
1109

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Base.php on line
1151

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/SOAP/Base.php on line
1176

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/Type/XSDType.php on line
97

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/Type/XSDType.php on line
110

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/Type/XSDType.php on line
112

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/Profile/Handler/Array.php
on line 53

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/Profile/API.php on line
256

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/Type/XSDSimpleType.php on
line 69

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/Type/XSDSimpleType.php on
line 71

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/Type/XSDSimpleType.php on
line 98

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/Type/XSDSimpleType.php on
line 111

Strict Standards: Assigning the return
value of new by reference is
deprecated in
(…)/PayPal/Type/XSDSimpleType.php on
line 113

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:27:46+00:00Added an answer on May 16, 2026 at 1:27 am

    I assume that PayPal Code is an external library from the PEAR Package your using that isn’t 5.3 Strict comparable. There quite some Code that suffers from that Problem.

    Assuming you don’t want to change that Code and Submit it back ( 😉 ) there aren’t so many things you can do.

    To name the first two that come to mind:

    In your wrapper Code for the Paypal access turn of E_STRICT everytime before the call and back on after.
    E.g.

    <?php
    class myPayPalWrapper { 
        public function doX() { 
             $x = error_reporting(E_ALL & ~E_STRICT); # or something
             $this->externalPaypalClass->doX();
             error_reporting($x);
        }
    }
    

    doesn’t look really pretty and requires a good amount of code.

    If your are already using a custom errorhandler in your project you could extend that to filter out all errors of that lib.
    E.g.

    <?php
    function myErrorHandler($iErrno, $sErrstr, $sErrfile, $iErrline) {
        if(error_reporting() & $iErrno) {
            if(strpos("libFolder/paypal", $sErrfile) !== false) {
                return true;
            }
        }
        return false;
    }
    

    Hope that helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.