In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1284 [In-Portal CMS] Database bug report always 2012-05-17 03:14 2012-07-25 05:30
alex  
alex  
normal  
closed 5.1.2  
fixed  
 
none 5.2.0-RC1  
https://groups.google.com/d/topic/in-portal-bugs/rvzOnZ9oHss/discussion
Fixes notice with kDBConnection::GetOne call in debug mode
1
0001284: Notice about incorrect "current" function usage in kDBConnection class
I'm seeing notice, that php can't pass argument by reference each time, when I use $this->Conn->GetOne method and debug mode is enabled.

This is happening, because we us current(current($ret)) construct and "current" function tries to modify given argument, which is not a variable, but a function result.
patch notice_for_db_getone_calls_in_debug_mode.patch (634) 2012-05-17 03:14
http://tracker.in-portal.org/file_download.php?file_id=1657&type=bug
Issue History
2012-07-25 05:30 alex Note Added: 0004904
2012-07-25 05:30 alex Status resolved => closed
2012-05-17 03:21 alex Changeset attached 5.2.x r15338
2012-05-17 03:20 alex Note Added: 0004640
2012-05-17 03:20 alex Status reviewed and tested => resolved
2012-05-17 03:20 alex Fixed in Version => 5.2.0-RC1
2012-05-17 03:20 alex Resolution open => fixed
2012-05-17 03:20 alex Assigned To !COMMUNITY => alex
2012-05-17 03:20 alex Note Added: 0004639
2012-05-17 03:20 alex Status needs testing => reviewed and tested
2012-05-17 03:20 alex Assigned To => !COMMUNITY
2012-05-17 03:20 alex Developer => alex
2012-05-17 03:20 alex Status active => needs testing
2012-05-17 03:20 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/rvzOnZ9oHss/discussion
2012-05-17 03:14 alex New Issue
2012-05-17 03:14 alex File Added: notice_for_db_getone_calls_in_debug_mode.patch
2012-05-17 03:14 alex Change Log Message => Fixes notice with kDBConnection::GetOne call in debug mode
2012-05-17 03:14 alex Estimate Points => 1

Notes
(0004639)
alex   
2012-05-17 03:20   
Will test all together later.
(0004640)
alex   
2012-05-17 03:20   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001284: Notice about incorrect "current" function usage in kDBConnection class
(0004904)
alex   
2012-07-25 05:30   
Since 5.2.0/1.2.0 versions was released.