Posted by swentel on September 23, 2011 at 11:38pm
6 followers
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | base system |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | needs backport to D7 |
Issue Summary
The __construct function in SchemaCache generates an empty $cid, at least on my setup:
Mamp pro 2.0 - php 5.3.6 - see screenshot underneath. I'm seeing this in both D8 and D.

Patch attached generates the cid as 'schema:runtime:1'
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| empty-cid.png | 25.73 KB | Ignored: Check issue status. | None | None |
| empty_cid.patch | 529 bytes | Idle | PASSED: [[SimpleTest]]: [MySQL] 32,867 pass(es). | View details |
Comments
#1
Well spotted! tests?
#2
Added a very simple test - the before patch will fail, the after should pass.
Should cache_set also do nothing if the $cid is empty ?
#3
Looks good, nice find!
#4
Committed to 8.x. Thanks!
#5
Here's the 7.x version.
#6
The last submitted patch, 1289364-after.patch, failed testing.
#7
Hmm, ok, I don't really see why this might trigger an exception there - just trying another review, maybe there's been a slight glitch - will ping one of the testbot maintainers afterwards (or I should try it out locally first maybe)
#8
#5: 1289364-after.patch queued for re-testing.
#9
Looks fine for 7.x too.
#10
Committed and pushed to 7.x. Thanks!
#11
#12
Automatically closed -- issue fixed for 2 weeks with no activity.