#34757 [Opn-Ver]: iconv_substr produce Unknown error

2005-10-07 Thread sniper
 ID:   34757
 Updated by:   [EMAIL PROTECTED]
 Reported By:  shagren at ua dot fm
-Status:   Open
+Status:   Verified
 Bug Type: ICONV related
-Operating System: Win2k
+Operating System: *
-PHP Version:  5.0.5
+PHP Version:  5CVS-2005-10-07 (cvs)


Previous Comments:


[2005-10-06 16:45:22] shagren at ua dot fm

Hm... Are you add changes and recompile php?

C:\tempphp 1.php
PHP Notice:  iconv_substr(): Unknown error (0) in C:\temp\1.php on line
2

Notice: iconv_substr(): Unknown error (0) in C:\temp\1.php on line 2
bool(false)

C:\tempphp -v
PHP 5.1.0RC2-dev (cli) (built: Oct  3 2005 20:27:48)
Copyright (c) 1997-2005 The PHP Group
Zend Engine v2.1.0-dev, Copyright (c) 1998-2005 Zend Technologies



[2005-10-06 15:17:47] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

Works from CVS.



[2005-10-06 14:11:47] shagren at ua dot fm

Description:

For some small(or empty) stringes iconv_substr produce error when try
to use offset  strlen

Reproduce code:
---
?php
  $x = iconv_substr(a,3,2);
  var_dump($x);
?

Expected result:

bool(false)



Actual result:
--
PHP Notice:  iconv_substr(): Unknown error (0) in C:\temp\1.php on line
2

Notice: iconv_substr(): Unknown error (0) in C:\temp\1.php on line 2

bool(false)






-- 
Edit this bug report at http://bugs.php.net/?id=34757edit=1


#34757 [Opn-Ver]: iconv_substr produce Unknown error

2005-10-06 Thread tony2001
 ID:   34757
 Updated by:   [EMAIL PROTECTED]
 Reported By:  shagren at ua dot fm
-Status:   Open
+Status:   Verified
 Bug Type: ICONV related
 Operating System: Win2k
 PHP Version:  5.0.5


Previous Comments:


[2005-10-06 14:11:47] shagren at ua dot fm

Description:

For some small(or empty) stringes iconv_substr produce error when try
to use offset  strlen

Reproduce code:
---
?php
  $x = iconv_substr(a,3,2);
  var_dump($x);
?

Expected result:

bool(false)



Actual result:
--
PHP Notice:  iconv_substr(): Unknown error (0) in C:\temp\1.php on line
2

Notice: iconv_substr(): Unknown error (0) in C:\temp\1.php on line 2

bool(false)






-- 
Edit this bug report at http://bugs.php.net/?id=34757edit=1