php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9316 calling an external function in a loop
Submitted: 2001-02-17 07:23 UTC Modified: 2001-04-10 10:01 UTC
From: s dot marini at si2si dot it Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.4pl1 OS: linux RedHat 6.2
Private report: No CVE-ID: None
 [2001-02-17 07:23 UTC] s dot marini at si2si dot it
I have a shared object the works fine with PHP4.0.0
I recompile it for PHP 4.0.4pl1.

Each function of this shared object works fine.
The problem succeed when I use a function that return a STRING in a loop.

A loop greater than 4 hang present an empty page.

Ex:

for ($i=0; $i<6; $i++)
{
   $aa=callc_get_stringa("12345");
}

The wrapper code used to return the string it's the same used in the older version of PHP

I compile PHP with mysql,apxs,ldap,ftp




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-17 10:27 UTC] andre@php.net
Please provide a reduced code fragment (<15 lines) producing
this behaviour.
Put no database queries etc. in it and rely on no external
files/functions to ensure that we can reproduce it easily
unless the problem is not directly related to some db (or
similar) function.
 [2001-02-20 10:47 UTC] s dot marini at si2si dot it
I need to send you a little tar file 12Kb that has the makefile to compile the shared object, the php page that we use to see the problem and the external file read by the shared object libraries.

How I can do?
 [2001-03-06 08:30 UTC] stas@php.net
Could you post short self-contained standalone script that
reproduces it?
 [2001-04-10 10:01 UTC] sniper@php.net
No feedback. If this happens also with soon to be released 
PHP 4.0.5, reopen this bug report with a short example 
script that can be used to reproduce this.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC