Development

Changeset 23543

You must first sign up to be able to contribute.

Changeset 23543

Show
Ignore:
Timestamp:
11/03/09 09:19:42 (4 years ago)
Author:
fabien
Message:

[1.0] fixed deprecated use of split for PHP 5.3 (closes #7509)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/helper/AssetHelper.php

    r17078 r23543  
    282282  if (isset($options['size'])) 
    283283  { 
    284     list($options['width'], $options['height']) = split('x', $options['size'], 2); 
     284    list($options['width'], $options['height']) = explode('x', $options['size'], 2); 
    285285    unset($options['size']); 
    286286  } 
  • branches/1.0/lib/helper/FormHelper.php

    r12201 r23543  
    422422  if ($size = _get_option($options, 'size')) 
    423423  { 
    424     list($options['cols'], $options['rows']) = split('x', $size, 2); 
     424    list($options['cols'], $options['rows']) = explode('x', $size, 2); 
    425425  } 
    426426 
  • branches/1.0/lib/response/sfWebResponse.class.php

    r9969 r23543  
    366366    if ($vary) 
    367367    { 
    368       $currentHeaders = split('/\s*,\s*/', $vary); 
     368      $currentHeaders = preg_split('/\s*,\s*/', $vary); 
    369369    } 
    370370    $header = $this->normalizeHeaderName($header); 
     
    389389    if ($cacheControl) 
    390390    { 
    391       foreach (split('/\s*,\s*/', $cacheControl) as $tmp) 
     391      foreach (preg_split('/\s*,\s*/', $cacheControl) as $tmp) 
    392392      { 
    393393        $tmp = explode('=', $tmp);