Call to undefined function eregi()

Bug #1570968 reported by brief
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
phamm (Ubuntu)
Fix Released
Undecided
Nish Aravamudan
Xenial
New
Undecided
Unassigned

Bug Description

PHP message: PHP Fatal error: Uncaught Error: Call to undefined function eregi() in /usr/share/phamm/controllers/helpers.php:285
Stack trace:
#0 /usr/share/phamm/public/main.php(251): check_syntax('domain', 'asdasd')
#1 {main}
  thrown in /usr/share/phamm/controllers/helpers.php on line 285

PHP Version: 7 although prerequisites are PHP5.

Revision history for this message
Nish Aravamudan (nacc) wrote :

Hello and thank you for filing this bug report! I have submitted test build of phamm with an API change at: https://launchpad.net/~nacc/+archive/ubuntu/lp1570968. Can you add that PPA to your system and test it once the build is complete?

Changed in phamm (Ubuntu):
status: New → Triaged
assignee: nobody → Nish Aravamudan (nacc)
Revision history for this message
brief (briefchain) wrote :

The error in the above file is solved, but there are some more occurences of the function.

# grep "ereg" * -r
controllers/helpers.php: if (!ereg ("^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$", $arg))
views/helpers.php: $uri = ereg ( '^http', $url ) ? $url : "$PROTOCOL://".

Revision history for this message
Nish Aravamudan (nacc) wrote :

@briefchain, can you please test the updated build (sorry about the versioning) at the same PPA. Should be 0.6.2-1.2ubuntu1.1.

Revision history for this message
Nish Aravamudan (nacc) wrote :
Revision history for this message
Nish Aravamudan (nacc) wrote :

The corresponding Yakkety fix is occurring via the merge Bug # 1595746.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package phamm - 0.6.2-2ubuntu1

---------------
phamm (0.6.2-2ubuntu1) yakkety; urgency=medium

  * Merge with Debian unstable (LP: #1595746). Remaining changes:
    - Fix Apache configuration to use mod_php7.c, not mod_php5.c.
  * debian/patches/php7_has_removed_ereg.patch: PHP7.0 has removed ereg
    as an API. Closes LP: #1570968.

phamm (0.6.2-2) unstable; urgency=medium

  * PHP 7.0 Transition Fix (Closes: #821544)
  * Updated Dutch translation (Closes: #774586)
  * Added Brazilian Portuguese (Closes: #824285)

 -- Nishanth Aravamudan <email address hidden> Thu, 23 Jun 2016 15:55:27 -0700

Changed in phamm (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.