[PHP-DEV] Bug #12443 Updated: --with-iconv works, iconv_get_encoding() is present, but iconv() isn't

2001-10-21 Thread sniper

ID: 12443
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: ICONV related
Operating System: Linux 2.2/RH 6.2
PHP Version: 4.0.6
New Comment:

Fixed for real now.

--Jani


Previous Comments:


[2001-10-02 18:28:20] [EMAIL PROTECTED]

No feedback, considered fixed.




[2001-08-19 04:05:53] [EMAIL PROTECTED]

Does this happen with latest CVS snapshot:

http://snaps.php.net/




[2001-07-27 21:44:56] [EMAIL PROTECTED]

hi all,

I've run into something very strange with iconv support...

I used --with-iconv=/usr/local/lib in my ./configure, 
compile and install both went fine.

I have libiconv-1.7 installed at /usr/local/lib

I checked out my phpinfo:

iconv supportenabled
DirectiveLocal ValueMaster Value
iconv.input_encodingISO-8859-1ISO-8859-1
iconv.internal_encodingISO-8859-1ISO-8859-1
iconv.output_encodingISO-8859-1ISO-8859-1

Then, I ran the script below after encountering this:
Fatal error: Call to undefined function: iconv() in 
/path/to/foo.php on line 23

";
} else {
echo "iconv_get_encoding is not declared";
}

if ($exists_iconv == TRUE) {
echo "iconv is declared";
} else {
echo "iconv is not declared";
}

$test_string = "this is an ascii-only test string";
echo "test_string is: $test_string";

$encoding = iconv_get_encoding($test_string);
echo "encoding is: $encoding";

$result = iconv($encoding,'UTF-8',$test_string);
echo "result is: $result";
?>


The result is as follows:

iconv_get_encoding is declared
iconv is not declared
test_string is: this is an ascii-only test string
encoding is: 
Fatal error: Call to undefined function: iconv() in 
/path/to/foo.php on line 23


As you can imagine, the above confused me as 
iconv_get_encoding() is there, but iconv() isn't.

Did a search in the bug archive and didn't find anything 
significant.

It's a strange one! :)

best,

_alex





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12443 Updated: --with-iconv works, iconv_get_encoding() is present, but iconv() isn't

2001-10-02 Thread sniper

ID: 12443
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: ICONV related
Operating System: Linux 2.2/RH 6.2
PHP Version: 4.0.6
New Comment:

No feedback, considered fixed.


Previous Comments:


[2001-08-19 04:05:53] [EMAIL PROTECTED]

Does this happen with latest CVS snapshot:

http://snaps.php.net/




[2001-07-27 21:44:56] [EMAIL PROTECTED]

hi all,

I've run into something very strange with iconv support...

I used --with-iconv=/usr/local/lib in my ./configure, 
compile and install both went fine.

I have libiconv-1.7 installed at /usr/local/lib

I checked out my phpinfo:

iconv supportenabled
DirectiveLocal ValueMaster Value
iconv.input_encodingISO-8859-1ISO-8859-1
iconv.internal_encodingISO-8859-1ISO-8859-1
iconv.output_encodingISO-8859-1ISO-8859-1

Then, I ran the script below after encountering this:
Fatal error: Call to undefined function: iconv() in 
/path/to/foo.php on line 23

";
} else {
echo "iconv_get_encoding is not declared";
}

if ($exists_iconv == TRUE) {
echo "iconv is declared";
} else {
echo "iconv is not declared";
}

$test_string = "this is an ascii-only test string";
echo "test_string is: $test_string";

$encoding = iconv_get_encoding($test_string);
echo "encoding is: $encoding";

$result = iconv($encoding,'UTF-8',$test_string);
echo "result is: $result";
?>


The result is as follows:

iconv_get_encoding is declared
iconv is not declared
test_string is: this is an ascii-only test string
encoding is: 
Fatal error: Call to undefined function: iconv() in 
/path/to/foo.php on line 23


As you can imagine, the above confused me as 
iconv_get_encoding() is there, but iconv() isn't.

Did a search in the bug archive and didn't find anything 
significant.

It's a strange one! :)

best,

_alex





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12443 Updated: --with-iconv works, iconv_get_encoding() is present, but iconv() isn't

2001-08-19 Thread sniper

ID: 12443
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: ICONV related
Operating System: Linux 2.2/RH 6.2
PHP Version: 4.0.6
New Comment:

Does this happen with latest CVS snapshot:

http://snaps.php.net/


Previous Comments:


[2001-07-27 21:44:56] [EMAIL PROTECTED]

hi all,

I've run into something very strange with iconv support...

I used --with-iconv=/usr/local/lib in my ./configure, 
compile and install both went fine.

I have libiconv-1.7 installed at /usr/local/lib

I checked out my phpinfo:

iconv supportenabled
DirectiveLocal ValueMaster Value
iconv.input_encodingISO-8859-1ISO-8859-1
iconv.internal_encodingISO-8859-1ISO-8859-1
iconv.output_encodingISO-8859-1ISO-8859-1

Then, I ran the script below after encountering this:
Fatal error: Call to undefined function: iconv() in 
/path/to/foo.php on line 23

";
} else {
echo "iconv_get_encoding is not declared";
}

if ($exists_iconv == TRUE) {
echo "iconv is declared";
} else {
echo "iconv is not declared";
}

$test_string = "this is an ascii-only test string";
echo "test_string is: $test_string";

$encoding = iconv_get_encoding($test_string);
echo "encoding is: $encoding";

$result = iconv($encoding,'UTF-8',$test_string);
echo "result is: $result";
?>


The result is as follows:

iconv_get_encoding is declared
iconv is not declared
test_string is: this is an ascii-only test string
encoding is: 
Fatal error: Call to undefined function: iconv() in 
/path/to/foo.php on line 23


As you can imagine, the above confused me as 
iconv_get_encoding() is there, but iconv() isn't.

Did a search in the bug archive and didn't find anything 
significant.

It's a strange one! :)

best,

_alex





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]