Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Deprecated: Assigning the return value of new by reference is deprecated


This topic is 5275 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted (edited)

I am using the FileMaker 10 Server with with the PHP API. Recently, we switched the PHP code to a machine (apparently) running a newer version of PHP, and now we're getting all these errors:

Deprecated: Assigning the return value of new by reference is deprecated

Is there are newer version of the PHP API that works with FileMaker 10 and doesn't use the deprecated syntax? If so, where can I get it?

Thanks for any help!

Edited by Guest
  • 1 month later...
Posted

The current API code will run fine on PHP 5.3 The deprecated "errors" are just letting you know it will cause problems in future versions. You can easily turn them off by editing in your php.ini file

look for a line with something like

error_reporting = E_ALL


and replace it with either one of the following


// Report simple running errors

error_reporting(E_ERROR | E_WARNING | E_PARSE);



// Reporting E_NOTICE can be good too (to report uninitialized

// variables or catch variable name misspellings ...)

error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

After editing your php.ini file you'll need to restart Apache before the changes take effect.

Also as with any application's config file Make a backup copy before you start tinkering around. That way if things don't go as planned you'll be fine.

On a production server it's generally a good idea to send the errors to a log a rather than the screen

You can also set those values at run time with the error_reporting function

This topic is 5275 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.