Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: PHP undefined notice in caching file storage #4752

Merged
merged 2 commits into from
Jun 17, 2015
Merged

Fix: PHP undefined notice in caching file storage #4752

merged 2 commits into from
Jun 17, 2015

Conversation

zero-24
Copy link
Contributor

@zero-24 zero-24 commented Oct 17, 2014

see: http://issues.joomla.org/tracker/joomla-cms/2535 & #2535

Steps to reproduce the issue

  1. configure caching to be file based in configuration.php
  2. use callback as handler
  3. lock the id
  4. remove the cache file
  5. unlock the id now

Expected result

If the cache file has beem removed, the unlock should just return true.

Actual result

Get php undefined variable notice:
Notice: Undefined variable: ret in web/libraries/joomla/cache/storage/file.php on line 333

System information (as much as possible)

Linux, Joomla 3.2 latest.

see: http://issues.joomla.org/tracker/joomla-cms/2535

#### Steps to reproduce the issue
1. configure caching to be file based in configuration.php
2. use callback as handler 
3. lock the id
4. remove the cache file 
5. unlock the id now   

#### Expected result
If the cache file has beem removed, the unlock should just return true. 



#### Actual result
Get php undefined variable notice: 
Notice: Undefined variable: ret in web/libraries/joomla/cache/storage/file.php on line <i>333</i>


#### System information (as much as possible)
Linux, Joomla 3.2 latest.
@zero-24
Copy link
Contributor Author

zero-24 commented Oct 17, 2014

hmm i have no clue why travis fail here?

There were 4 errors:
1) JResponseJsonTest::testSimpleSuccess
Exception: Application Instantiation Error
/home/travis/build/joomla/joomla-cms/libraries/joomla/factory.php:121
/home/travis/build/joomla/joomla-cms/libraries/cms/response/json.php:71
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/cms/response/JResponseJsonTest.php:59
2) JResponseJsonTest::testSuccessWithData
Exception: Application Instantiation Error
/home/travis/build/joomla/joomla-cms/libraries/joomla/factory.php:121
/home/travis/build/joomla/joomla-cms/libraries/cms/response/json.php:71
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/cms/response/JResponseJsonTest.php:79
3) JResponseJsonTest::testFailureWithException
Exception: Application Instantiation Error
/home/travis/build/joomla/joomla-cms/libraries/joomla/factory.php:121
/home/travis/build/joomla/joomla-cms/libraries/cms/response/json.php:71
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/cms/response/JResponseJsonTest.php:100
4) JResponseJsonTest::testFailureWithData
Exception: Application Instantiation Error
/home/travis/build/joomla/joomla-cms/libraries/joomla/factory.php:121
/home/travis/build/joomla/joomla-cms/libraries/cms/response/json.php:71
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/cms/response/JResponseJsonTest.php:124

@mbabker
Copy link
Contributor

mbabker commented Oct 17, 2014

Don't worry about it, already addressed. Refactored tests and a modified application reference in two separate patches at nearly the exact time made for an interesting followup.

@zero-24
Copy link
Contributor Author

zero-24 commented Oct 17, 2014

thanks @mbabker

@Hackwar
Copy link
Member

Hackwar commented Dec 8, 2014

@test successfull

@waader
Copy link
Contributor

waader commented Dec 11, 2014

@zero-24 I tried to follow the test instructions but I struggle already at the 2nd point. How do I use callback as handler. Do I have to write code to test this or can it be tested within the backend?

@zero-24 zero-24 closed this May 31, 2015
@zero-24 zero-24 deleted the patch-3 branch May 31, 2015 08:42
@zero-24 zero-24 restored the patch-3 branch May 31, 2015 08:42
@zero-24 zero-24 reopened this May 31, 2015
@zero-24 zero-24 added this to the Joomla! 3.4.2 milestone Jun 6, 2015
wilsonge added a commit that referenced this pull request Jun 17, 2015
Fix: PHP undefined notice in caching file storage
@wilsonge wilsonge merged commit 92ca4ad into joomla:staging Jun 17, 2015
@zero-24 zero-24 deleted the patch-3 branch June 18, 2015 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants