php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24483 Mono integration doesn't work
Submitted: 2003-07-03 08:57 UTC Modified: 2003-07-03 14:57 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: kris dot hofmans at pandora dot be Assigned: sterling (profile)
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.0.0b1 (beta1) OS: Linux
Private report: No CVE-ID: None
 [2003-07-03 08:57 UTC] kris dot hofmans at pandora dot be
Description:
------------
I've been trying to get this to work for a couple of days now.

When I call a page that uses mono I get this in the apache logs:

** ERROR **: file jit.c: line 4100 (mono_get_lmf_addr): should not be reached
aborting...
[Thu Jul 03 15:41:34 2003] [notice] child pid 7752 exit signal Aborted (6)

I get this with the most basic helloworld sample from sterling.

I'm using the mono repository provided here: http://www.debianplanet.com/mono/ on a freshly installed adamantix (former trusteddebian) system.

Reproduce code:
---------------
<?php
$Console = new Mono('System.Console');
$Console->WriteLine("Hello World");
?> 

Expected result:
----------------
Hello World

Actual result:
--------------
nothing, just the log entry.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-03 09:10 UTC] kris dot hofmans at pandora dot be
The summary, os and version changed? I'm sorry I'm new at bugzilla.
 [2003-07-03 09:14 UTC] derick@php.net
Sorry, that was my mistake...
 [2003-07-03 14:37 UTC] sterling@php.net
Mono doesn't work from within Apache, as Console.WriteLine() writes to the *console*, not to apache's stdout.  If you want this to work in apache, you need to try something like mod_haydn (http://haydn.sf.net/) or mod_mono (forgot the url).

Try it from the command line first though.
 [2003-07-03 14:57 UTC] kris dot hofmans at pandora dot be
oh boy, is my face red :)

Although there is no explicit mention of this I could have figured it out looking at the stack.php example.

I expected the "console" output would be translated to whatever output handling available, I was thinking about using the CLI binary to test but unfortunatly it doesn't compile here (I'm going to look into it though).

Now if I could only figure out where you guys are hiding that java extension I'm all set :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 08:01:36 2025 UTC