View Issue Details

IDProjectCategoryView StatusLast Update
0010974mantisbtbugtrackerpublic2010-02-22 14:34
Reporterdhx Assigned Tojreese  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Target Version1.2.0Fixed in Version1.2.0 
Summary0010974: ereg() is deprecated in PHP 5.3.0, use preg_match() instead
Description

See http://au2.php.net/manual/en/function.ereg.php for the deprecation notice.

Matches with grep -Rn [^_.]ereg( *

api/soap/mantisconnect.php:1359: if ( isset( $t_qs ) && ereg( 'wsdl', $t_qs ) ){
core/custom_field_api.php:1151: $t_valid &= ereg( $t_valid_regexp, $p_value );
core/graphviz_api.php:441: if( !ereg( "[a-zA-Z]+", $t_name ) ) {
core/graphviz_api.php:466: if( !ereg( "[a-zA-Z]+", $t_name ) ) {
docbook/adminguide/en/customizing_mantis.sgml:113: <para>Regular expression to use for validating user input (use <ulink url="http://www.php.net/ereg">ereg()</ulink> syntax).

The nusoap library also makes heavy use of ereg().

TagsNo tags attached.

Relationships

related to 0010973 closeddhx split() is deprecated in PHP 5.3.0, use preg_split() instead 
related to 0010976 closeddregad Remove instances of pass-by-reference (deprecated in PHP 5.3.0) 
related to 0010975 closeddhx eregi_replace() is deprecated in PHP 5.3.0, use preg_replace() with the 'i' modifier instead 

Activities

rombert

rombert

2009-10-14 09:31

reporter   ~0023185

Possibly related to 0010982 as well - raises E_WARNINGS and E_DEPRECATION when using the SOAP API.

jreese

jreese

2009-10-14 09:43

reporter   ~0023186

Fix committed to master and 1.2 branches.

Related Changesets

MantisBT: master-1.2.x f46bc275

2009-10-14 09:36

jreese


Details Diff
Fix 0010974: ereg is deprecated in PHP 5.3 Affected Issues
0010974
mod - core/graphviz_api.php Diff File
mod - core/custom_field_api.php Diff File
mod - api/soap/mantisconnect.php Diff File
mod - docbook/adminguide/en/customizing_mantis.sgml Diff File

MantisBT: master 38742813

2009-10-14 09:36

jreese


Details Diff
Fix 0010974: ereg is deprecated in PHP 5.3 Affected Issues
0010974
mod - core/graphviz_api.php Diff File
mod - api/soap/mantisconnect.php Diff File
mod - core/custom_field_api.php Diff File
mod - docbook/adminguide/en/customizing_mantis.sgml Diff File