[GH-ISSUE #6] Fatal error: Can't use method return value in write context #5

Closed
opened 2026-02-25 21:33:52 +03:00 by kerem · 2 comments
Owner

Originally created by @gevatter on GitHub (May 4, 2015).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/6

Originally assigned to: @jasonmunro on GitHub.

I just wantet to try out cypth but when accessing the page i get

Fatal error: Can't use method return value in write context in /var/www/cypht/hm3-master/modules/core/modules.php on line 848

It doesent matter, if I use the main dir or the site dir as document root.

# php -v
PHP 5.4.39-0+deb7u2 (cli) (built: Mar 25 2015 08:33:29)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
Originally created by @gevatter on GitHub (May 4, 2015). Original GitHub issue: https://github.com/cypht-org/cypht/issues/6 Originally assigned to: @jasonmunro on GitHub. I just wantet to try out cypth but when accessing the page i get ``` Fatal error: Can't use method return value in write context in /var/www/cypht/hm3-master/modules/core/modules.php on line 848 ``` It doesent matter, if I use the main dir or the site dir as document root. ``` # php -v PHP 5.4.39-0+deb7u2 (cli) (built: Mar 25 2015 08:33:29) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies ```
kerem 2026-02-25 21:33:52 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jasonmunro commented on GitHub (May 4, 2015):

Thanks for the report! I was not aware of that particular behavior WRT empty() in PHP versions less than 5.5. I fixed this instance and a few others I found in this commit: github.com/jasonmunro/hm3@610860afce

<!-- gh-comment-id:98726481 --> @jasonmunro commented on GitHub (May 4, 2015): Thanks for the report! I was not aware of that particular behavior WRT empty() in PHP versions less than 5.5. I fixed this instance and a few others I found in this commit: https://github.com/jasonmunro/hm3/commit/610860afcee360fc69f95ab08791be40c768f9cf
Author
Owner

@gevatter commented on GitHub (May 4, 2015):

Thanks, its working for me. I have an other question, but I will open an other issue for that.

<!-- gh-comment-id:98764782 --> @gevatter commented on GitHub (May 4, 2015): Thanks, its working for me. I have an other question, but I will open an other issue for that.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#5
No description provided.