#47954 [Com]: pathinfo function returns invalid filename for utf-8 file

2009-04-11 Thread top dot bagger at bk dot ru
 ID:   47954
 Comment by:   top dot bagger at bk dot ru
 Reported By:  top dot bagger at bk dot ru
 Status:   Open
 Bug Type: *Unicode Issues
 Operating System: Linux 2.6.18
 PHP Version:  5.2.9
 New Comment:

utf-8 strings i submitid there got replaced by entities :( The main
thing is there should be a "_" sign in filename. Then "filename" part
becomes splitted by it. If there is no "_" sign, the "filename" part is
empty.


Previous Comments:
------------

[2009-04-12 00:36:26] top dot bagger at bk dot ru

Description:

pathinfo() function returns invalid "filename" array part for utf-8
filename



Reproduce code:
---



Expected result:

string(25)
"ПРИВЕТ_МЕДВЕД"


Actual result:
--
string(13) "_МЕДВЕД" 





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



#47954 [NEW]: pathinfo function returns invalid filename for utf-8 file

2009-04-11 Thread top dot bagger at bk dot ru
From: top dot bagger at bk dot ru
Operating system: Linux 2.6.18
PHP version:  5.2.9
PHP Bug Type: *Unicode Issues
Bug description:  pathinfo function returns invalid filename for utf-8 file

Description:

pathinfo() function returns invalid "filename" array part for utf-8
filename



Reproduce code:
---



Expected result:

string(25)
"ПРИВЕТ_МЕДВЕД"


Actual result:
--
string(13) "_МЕДВЕД" 

-- 
Edit bug report at http://bugs.php.net/?id=47954&edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47954&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47954&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47954&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47954&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47954&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47954&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47954&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47954&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47954&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47954&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47954&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47954&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47954&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47954&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47954&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47954&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47954&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47954&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47954&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47954&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47954&r=mysqlcfg



#44897 [NEW]: failed to prepare statement

2008-05-02 Thread top dot bagger at bk dot ru
From: top dot bagger at bk dot ru
Operating system: CentOS 5
PHP version:  5.2.6
PHP Bug Type: MySQLi related
Bug description:  failed to prepare statement

Description:

"prepare" method call returns false if mysql stored procedure was prepared
before

Reproduce code:
---
$my = new mysqli("localhost","test","test","test_db");
$stmta = $my->prepare("CALL sp_auth_user(?,?)");
$user = 'user';
$pass = 'pass';
$stmta->bind_param("ss", $user,$pass);
$stmta->execute();
$stmta->bind_result($state);
$stmta->fetch();
printf("State of user: %s\n", $state);
$stmta->close();
$stmtb = $my->prepare("SELECT userId FROM appUsers WHERE login = ?");
if ($stmtb) echo "prepare succeeded";
else {
echo "prepare failed";
echo "errno: ", $my->errno, "  - error: ", $my->error, "";
}

Expected result:

$stmtb contains mysqli_stmt object

Actual result:
--
$stmtb is false

-- 
Edit bug report at http://bugs.php.net/?id=44897&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44897&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44897&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44897&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44897&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=44897&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=44897&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=44897&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=44897&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=44897&r=support
Expected behavior:http://bugs.php.net/fix.php?id=44897&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=44897&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=44897&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44897&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44897&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44897&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=44897&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=44897&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44897&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=44897&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=44897&r=mysqlcfg



#44897 [Opn]: failed to prepare statement

2008-05-02 Thread top dot bagger at bk dot ru
 ID:   44897
 User updated by:  top dot bagger at bk dot ru
 Reported By:  top dot bagger at bk dot ru
 Status:   Open
 Bug Type: MySQLi related
 Operating System: CentOS 5
 PHP Version:  5.2.6
 New Comment:

Sorry, I forgot to add my output of this:

State of user: 1prepare failed
errno: 2013 - error: Lost connection to MySQL server during query


Previous Comments:


[2008-05-02 20:27:03] top dot bagger at bk dot ru

Description:

"prepare" method call returns false if mysql stored procedure was
prepared before

Reproduce code:
---
$my = new mysqli("localhost","test","test","test_db");
$stmta = $my->prepare("CALL sp_auth_user(?,?)");
$user = 'user';
$pass = 'pass';
$stmta->bind_param("ss", $user,$pass);
$stmta->execute();
$stmta->bind_result($state);
$stmta->fetch();
printf("State of user: %s\n", $state);
$stmta->close();
$stmtb = $my->prepare("SELECT userId FROM appUsers WHERE login = ?");
if ($stmtb) echo "prepare succeeded";
else {
echo "prepare failed";
echo "errno: ", $my->errno, "  - error: ", $my->error, "";
}

Expected result:

$stmtb contains mysqli_stmt object

Actual result:
--
$stmtb is false





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