weird problems with PHP

From: Date: Thu, 21 Dec 2000 09:51:41 +0000
Subject: weird problems with PHP
Groups: php.pear 
Request: Send a blank email to php-pear+get-727@lists.php.net to get a copy of this message
Greetings! I'm not sure if it's ready for a bugreport yet... Scripts that heavily utilise PHP4-specific functionality (references, OO stuff), don't work properly. Unfortunately, PEAR DB abstraction layer is one of such scripts... Here goes the story: I decided to tailor Phorum for my own needs and at the same time test PEAR DB functionality by porting it from its own DB-"abstraction" layer to PEAR DB. The problem arised with the posting page: sometimes it returned zero-length response, while the messages got into the database OK. Besides, if an "exit;" was put somewhere in the middle of the script, it did produce some output. My guess was that PHP just silently crashed, but Apache didn't dump core (nothing in error_log at least). Then I had similar problems with my own scripts (it was even weirder, as variables' values were replaced by some rubbish). Simple test cases work without any problems, but as scripts grow larger and more complex, they just refuse to work properly. So, the question is: have anyone tried to use PEAR DB in complex scripts and did he experience any weirdness in PHP's behaviour? -- Yours, Alexey V. Borzov, Webmaster of RDW

« previous php.pear (#727) next »