Closed (won't fix)
Project:
Coder
Version:
7.x-1.x-dev
Component:
Coder Review
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2012 at 12:33 UTC
Updated:
16 Jan 2016 at 18:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fgmSuggested patch avoids these errors.
Comment #2
douggreen commentedIt appears to me that this would be a problem, but when I run from both the UI and drush test-run I don't see any errors. I tested on the 7.x-1.x and 7.x-2.x branches. Can you elaborate on where you get this error please :)
Comment #3
fgmI used to get them when running the test on PHP 5.3 at E_STRICT with php scripts/run-tests.sh . These days it just causes a segfault. This does not happen when running from Drush, but still happens in the Web UI:
This stops the batch UI:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=5&op=do StatusText: OK ResponseText: ( ! ) Fatal error: Call to undefined function coder_review_reviews() in /home/marand/Dropbox/src/d7/sites/all/modules/contrib/coder/coder_review/tests/coder_review_test_case.tinc on line 21
Then in the results:
Use of undefined constant SEVERITY_MINOR - assumed 'SEVERITY_MINOR' Notice coder_review_test_case.tinc 20 CoderReviewTestCase->runTest()
Trying to get property of non-object Notice session.inc 178 _drupal_session_write()
Comment #4
douggreen commentedThe attached patch doesn't seem to solve the problem for me. Before and after results below:
Do you know how to look at those exceptions?
Comment #5
fgmNo idea how to get at them in CLI mode, but in the Web UI they are normally displayed.
Comment #6
klausiCoder 7.x-1.x is frozen now and will not receive any updates. Coder 8.x-2.x can be used to check code for any Drupal version, Coder 8.x-2.x also supports the phpcbf command to automatically fix conding standard errors. Please check if this issue is still relevant and reopen against that version if necessary.