2009-03-04 2 views
3

ich eine Anfrage an meine PHP-Anwendung durch einen JSON-kodierte Ajax-Request (Formular-Prozess) zu senden. Ein Post-Request mit der Zeichenlänge 4174 wird erfolgreich verarbeitet und das Ergebnis wird korrekt empfangen. Das Hinzufügen eines zusätzlichen Zeichens zur Anfrage führt dazu, dass meine Anwendung bis zu Apache2 seg-faults unendlich weiterläuft. Es gibt nur zwei Felder, eines für eine dreistellige ID, und der Rest ist Text aus einem Textbereich.json post request Größenbeschränkung (jetzt ein bestätigter php-mysqli bug)

ich das Zend Framework bin mit meiner Anwendung zu fahren, Apache2.2.3, PHP 5.2.8, JSON-Plugin Version 1.2.1, MySQL 5.0.77

Wer irgendwelche Ideen ...

hier ist ein weiteres Update :: verfolgte dieses Problem auf kein Problem JSON-Anfrage, aber ein Problem mit der Abfrage, die ich ausgeführt werde. Ich führe eine Abfrage INSERT ON DUPLICATE KEY UPDATE durch, die die Textgröße der Abfrage aufbläht. Ich kann diesen Query-Find von der Kommandozeile ausführen, aber von PHP schlägt es fehl. Derzeit wird das Problem untersucht. Jeder Interessierte konnte die Abfrage hier ..

** dies ist ein Fehler mit der mysqli-Plugins für PHP sehen, die aus irgendeinem Grund die db-Handler den Code nicht mag. Wenn/wenn ich Zeit habe, um richtig zu testen, werden Sie meine Ergebnisse sehen. **

INSERT INTO element_attribute_values (ElementAttributeId,ElementId,value) VALUES (1,'553','444st text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this itext this itext this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test tex this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is sotext this ime test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test tex tesxthis is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is fsome test texttext this i this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is sometext this i test text this is some test text this is some test text this is sothis is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text thisf iffffffff4444') ON DUPLICATE KEY UPDATE value='444st text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this itext this itext this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test tex this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is sotext this ime test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test tex tesxthis is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is fsome test texttext this i this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is sometext this i test text this is some test text this is some test text this is sothis is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text thisf iffffffff4444' 
+0

Bitte melden Sie sich zurück, wenn Sie mehr wissen! – Evert

+0

Natürlich bedeutet ein Apache-Absturz wahrscheinlich, dass ein Fehler im PHP-Modul vorliegt. Sie möchten wahrscheinlich herausfinden, welche PHP-Funktion abstürzt und einen Workaround finden. Kannst du verfolgen, welche Zeile in deinem Code diejenige ist, die alles zum Absturz bringt? –

Antwort

0

Ich weiß nicht, ob dies verwandt ist oder nicht, aber ich wurde mit jQuery vor kurzem mit dem $ Schnipsel() Methode, POST-Daten von einem Textfeld an ein PHP-Skript zu senden. Das PHP-Skript würde dann die Daten (XML) nach den benötigten Informationen durchsuchen. Ich bemerkte einen Fehler auf meiner firePHP-Ausgabe, dass es nicht möglich war, das XML vom POSTed-Formular zu analysieren. Ich hatte es dann die strlen() und die Daten ausgegeben und bemerkte, dass es von etwa 7k Byte auf 268 (oder 256 oder etwas, das ich die genaue Menge vergessen habe) zu schneiden. Dies machte es zu einem unvollständigen und nicht gültigen XML-Datenstapel. Ich habe das behoben, indem ich stattdessen die Methode $ .post() verwendet habe. Arbeitete perfekt.

0

Sie können einfach die Länge Ihrer Zeichenfolge überprüfen, und wenn es über der Grenze ist, teilen Sie es auf. Führen Sie den ersten Teil in der Einfügung aus, und führen Sie dann mit dem zweiten Teil eine Aktualisierung auf dem Feld mit += durch. Es ist ein bisschen grob, aber es geht um den Fehler.