Jeff-Lewis / smarty-php

Automatically exported from code.google.com/p/smarty-php
0 stars 0 forks source link

str_pos in smarty_internal_templatelexer.php (version 3.1.15) #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Function yy_rl_13 and other functions here gives an error in case strpos will 
become mb_strpos.

In version 3.1.8 there is no problem (different check)

The value substr($this->value,$this->ldel_length,1)) can become false which 
cause the mb_strpos triggers a warning (no valid string) and cause maybe a bug 
in the if strpos function:

(strpos(" \n\t\r",substr($this->value,$this->ldel_length,1))
(strpos(" \n\t\r",0,1)) where 0 was false 
(substr($this->value,$this->ldel_length,1)==false.

Original issue reported on code.google.com by remco.va...@takeaway.com on 7 Nov 2013 at 11:04

GoogleCodeExporter commented 9 years ago
The fix is now in the SVN trunk and will later be included in 3.1.16

Original comment by Uwe.Tews@googlemail.com on 7 Nov 2013 at 8:02