Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

  • Newbies

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...

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

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.