Awhile back, working in Drupal 6, I found an issue in which a valid path, say:
would be served if the following did not exist:
I thought it was occurring only with pages defined through Panels and Views, and managed to implement a rather complex check (run during hook_init()) for whether a panel should really be handling that path, and if not, call drupal_not_found().
I just today realized that this same thing occurs with paths defined in Drupal core, e.g.
gets served for
(This answer is what tipped me off: https://drupal.stackexchange.com/a/5080/834)
So evidently, this is happening by design (and through no fault of the CTools-related modules that instate pages through hook_menu()).
I haven't fully been able to dig into menu_get_item() to figure out how it's accepting the extra args, but my question is: does anyone know a way to get around this behavior and make these non-existent paths result in 404s?