April 7, 201015 yr 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 April 7, 201015 yr by Guest
June 7, 201015 yr 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