debug
This commit is contained in:
parent
ae8acb461b
commit
fc81076621
|
@ -31,11 +31,13 @@
|
||||||
|
|
||||||
/* (2) Read first line */
|
/* (2) Read first line */
|
||||||
$f_gstate->seek(0);
|
$f_gstate->seek(0);
|
||||||
$state = $f_gstate->fgets();
|
$state = $f_gstate->current();
|
||||||
|
|
||||||
$state = preg_replace('@^\s+@', '', $state);
|
$state = preg_replace('@^\s+@', '', $state);
|
||||||
$state = preg_replace('@\s+$@', '', $state);
|
$state = preg_replace('@\s+$@', '', $state);
|
||||||
|
|
||||||
|
var_dump($state);
|
||||||
|
|
||||||
/* (3) Check data */
|
/* (3) Check data */
|
||||||
if( strlen($state) < 1 )
|
if( strlen($state) < 1 )
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue