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 8952059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:47:25+00:00 2026-06-15T13:47:25+00:00

I have a big web application that worked in PHP 5.3.2 with Zend FrameWork,

  • 0

I have a big web application that worked in PHP 5.3.2 with Zend FrameWork, and was migrated to a new server with PHP 5.4.2. Most of it still works, but there is a small part (let’s call it the “import”) that gives an error:

Declaration of RptSchdlMdfctnBO::getWorkFlowData() should be
compatible with WorkFlowBaseBO::getWorkFlowData($Id), file
/www/vrs/vrs/application/models/wrkflows/RptSchdlMdfctnBO.php, line79

What happens is that there is this class RptSchdlMdfctnBO, with an empty method getWorkFlowData($Id), which is redefined in many places with the same arguments.
But in the import part, this method is redefined with two arguments, and then it is always called with two arguments; apparently, this is not accepted in PHP 5.4.2.
I tried to change the definition of the method to accept a second, optional argument but this did not change anything:

public function getWorkFlowData($Id,$Flags=0)

Two questions:
1) Can you please link me to a place where this behaviour change in PHP is explained?
2) What is the least dangerous workaround for getting the import function to work?

  • 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-06-15T13:47:26+00:00Added an answer on June 15, 2026 at 1:47 pm

    I’d suggest adding a new method to the class, for example getWorkFlowDataWithFlags($id, $flags) and refactor the functionality from getWorkFlowData into it, and change that getWorkFlowData simply calls getWorkFlowDataWithFlags with the default flag of 0

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

Sidebar

Related Questions

I have a php web application that uses big cookies to store a lot
i have big trouble with my application that web-application(jsp,java,servlet) landed between two server cause
Suppose that you have a big Data Entry Web Application Like Microsoft CRM ,
I have a pretty big web application that I created last year using ASP.NET
I have a web application that use Sring IoC framework. I use the Java
We have a web application that has been built using MySQL / PHP /
Recently I have been working on upgrading a big web application that was using
I have a web app that has a big and complex form (fields, checks,
We have a web application that runs on IIS using .NET 2.0 developed and
I have a pretty big JSF web application. I must convert the application to

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.