I'm at work atm - but 'only variables should be passed by reference'  - i wonder : do you need error_reporting(E_STRICT); set?


On Thu, Apr 24, 2014 at 2:04 AM, Damien Regad <dregad@mantisbt.org> wrote:
On 23.04.2014 16:41, Paul Richards wrote:
> I was trying to call user_create( 'user', 'pass',
> 'nobdy@mantisbt.org
> <mailto:nobdy@mantisbt.org>' ); in a unit
> test and getting the error under php 5.5 - and your comment about
> missing something - I had the same thought when looking at the code :)

'The error' - what error ? Just as a quick test -

$ php --version
PHP 5.5.3-1ubuntu2.1 (cli) (built: Dec 12 2013 04:24:35)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
    with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend
Technologies
    with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

$ php -a
Interactive mode enabled

php > include('core.php');
php > ob_end_flush();
php > ob_end_flush();
php > user_create('user','pass','nobody@test.com');
php > print_r(user_get_row_by_name('user'));
Array
(
    [id] => 9
    [username] => user
    [realname] =>
    [email] => nobody@test.com
    [password] => 1a1dc91c907325c69271ddf0c944bc72
    [enabled] => 1
    [protected] => 0
    [access_level] => 25
    [login_count] => 0
    [lost_password_request_count] => 0
    [failed_login_count] => 0
    [cookie_string] =>
9WEOzUg6Dwartgvjt4Ksu7swmNIhg9xp0qr6ZlNyYMNA4LtA4Oo1wY7aVeB3T_RT
    [last_visit] => 1398301289
    [date_created] => 1398301289
)


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com



------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
mantisbt-dev mailing list
mantisbt-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev