I have seen one of the great authorities who wrote that the side reeds of a tzurat hapetach must not be distant from the walls by three tefachim. (Tevu'ot Shor at the end in Bechor Shor). And there is one who wrote that on one side it must be so, but on the second side it can be distant from the wall. (Sha'arei Teshuvah in siman 363, subsection 12 in the name of the Beit Ephraim). And these are wondering matters, for a tzurat hapetach is exactly like a wall, and therefore it is valid even on four sides, as has been explained; and what do I care if one wall is distant from its fellow by any amount, as it is like a breach, which is permitted up to ten amot. And furthermore, there is clear proof, for our teacher Yehonatan wrote regarding one who distanced the lechi from the wall by three tefachim—it is invalid, because the air from this side and that side comes and nullifies it, (the Magen Avraham brought it in siman 363, subsection 5) and regarding a tzurat hapetach this is not applicable. And furthermore, what connection does the tzurat hapetach have to the wall, for even in a valley a tzurat hapetach is valid. And furthermore, if it should enter your mind that even a tzurat hapetach has the law of a lechi, that it should not be distant from the wall by three tefachim, why specifically did the Shas (14b) inform us regarding a lechi? Let it inform us regarding a tzurat hapetach, and all the more so regarding a lechi. And certainly the second law mentioned there, "if he raised it from the ground three," applies also to a tzurat hapetach, for even with a complete partition it is invalid, as it is a partition that kids can break through, but not regarding distancing the tzurat hapetach from the wall, for this is like distancing a wall from a wall, which up to ten is like an entrance. And even though a lechi is also on account of a partition, nevertheless it is a light partition, and therefore it is invalid in more than ten, and in a through-way, and in a courtyard. This is not the case with a tzurat hapetach, for it is a complete partition in all laws of the Torah, whether for Shabbat or for kilayim. Therefore, it appears in my humble opinion that there is no concern in this. (And the proof that the Tevu'ot Shor brought from Tosafot 11a, starting with "Ipcha," where Rabbeinu Tam asked why we need the height of a tzurat hapetach, for with one reed it is valid on account of a lechi, see there, and he asked that there is a practical difference when it is distant three tefachim from the wall, see there. And I wonder, for in truth the Tosafot answer in this manner in a place where a lechi is not effective, such as in a through-way, etc., see there, and why is this answer stronger than that answer? And also the Tosefet Shabbat in siman 363, subsection 10 rejected this, see there).
ראיתי לאחד מן הגדולים שכתב, דהקנים הצדדיים של צורת הפתח צריכין שלא יהיו רחוקין מהכתלים ג' טפחים. (תב"ש בסופו בבכ"ש) ויש מי שכתב שמצד אחד צריך כן, ומצד השני יכול להיות רחוק מהכותל. (ש"ת בסימן שס"ג סקי"ב בשם הבית אפרים)ודברים תמוהים הם, דהא צורת הפתח הוה ממש ככותל, ולכן כשר אפילו בד' רוחות, כמו שנתבאר, ומה איכפת לי אם כותל אחד רחוק מחבירו כמה, והוי כפירצה, דעד עשר אמות מותר. ועוד ראיה ברורה, דרבינו יהונתן כתב על מה דהרחיק הלחי מן הכותל ג' טפחים - פסול, משום דאתי אוירא דהאי גיסא ודהאי גיסא ומבטל ליה, (הביאו המג"א בסימן שס"ג סק"ה) ובצורת הפתח לא שייך זה. ועוד, מאי שייך הצורת הפתח להכותל, הא אפילו בבקעה כשר צורת הפתח. ועוד, דאי סלקא דעתך דגם צורת הפתח הוה דינו כלחי, שלא ירחק מן הכותל ג' טפחים, מאי איריא דהש"ס (י"ד:) להשמיענו בלחי, נשמיעינו בצורת הפתח וכל שכן בלחי. ובודאי הדין השני שבשם, 'הגביהו מן הקרקע שלשה' שייך גם בצורת הפתח, דאפילו במחיצה גמורה - פסולה, דהוה ליה מחיצה שהגדיים בוקעין בה, אבל לא בהרחיק הצורת הפתח מן הכותל, וזהו כהרחקת כותל מכותל, דעד י' - הוה כפתח. ואף על גב דגם לחי משום מחיצה, מכל מקום מחיצה קלה היא, ולכן פסולה ביותר מעשר ובמפולש ובחצר. מה שאין כן צורת הפתח, דהיא מחיצה גמורה בכל דיני התורה, בין לשבת בין לכלאים. ולכן נראה לעניות דעתי דאין חשש בזה(והראיה שהביא התב"ש מתוספות י"א. ד"ה 'איפכא', שהקשה ר"ת למה לן בגובה צורת הפתח, הא בקנה אחד כשר משום לחי ע"ש, והקשה דהא יש נ"מ כשרחוק ג' טפחים מהכותל ע"ש. ותמיהני הלא באמת מתרצים התוספות באופן זה במקום דלא מהני לחי כמו במפולש וכו' ע"ש, ומאי אולמא האי תירוצא מהאי תירוצא, וגם הת"ש בסימן שס"ג סק"י דחה זה ע"ש).